package
0.0.2-migrate-evm
Repository: https://github.com/scalarorg/scalar-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AsTestCases is defined for convenience of casting a slice to TestCases.
FailOnTimeout blocks until `done` is closed or until specified timeout has elapsed.
Given starts the test with the first precondition.
SetEnv safely sets an OS env var to the specified value and resets it to the original value upon test closure.
SetFileContents safely sets the contents of the specified filepath to the specified value, then resets it to the original value upon test closure.
SetFileContentsAndPermissions safely sets the contents of the specified filepath to the specified value and FileMode, then resets it to the original value upon test closure.
Then is an independent outcome check that can be used to start a statement in a Branch.
When is an independent trigger that can be used to start a statement in a Branch.

# Structs

ErrorCache is a struct that can be used to get at the error that is emitted by test assertions when passing it instead ot *testing.T.
GivenStatement is used to set up unit test preconditions.
ThenStatement is used to define test assertions.
WhenStatement is used to define conditions under test.

# Interfaces

Runner combines ThenStatement and ThenStatements, this should not be implemented outside of this package!.

# Type aliases

Func wraps a regular testing function so it can be used as a pointer function receiver.
TestCases define alternative test setups that should all be tested.
ThenStatements is used as an alias for multiple ThenStatement.