forked from hashicorp/terraform-plugin-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove exposures of testing.T from other places in SDK
move interface down a package to prevent a circular import
- Loading branch information
Showing
7 changed files
with
45 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Package testing aims to expose interfaces that mirror go's testing package | ||
// this prevents go's testing package from being imported or exposed to | ||
// importers of the SDK | ||
package testing | ||
|
||
// T is the interface used to handle the test lifecycle of a test. | ||
// | ||
// Users should just use a *testing.T object, which implements this. | ||
type T interface { | ||
Error(args ...interface{}) | ||
FailNow() | ||
Fatal(args ...interface{}) | ||
Fatalf(format string, args ...interface{}) | ||
Helper() | ||
Log(args ...interface{}) | ||
Name() string | ||
Parallel() | ||
Skip(args ...interface{}) | ||
SkipNow() | ||
} | ||
|
||
type M interface { | ||
Run() int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters