Documentation ¶
Index ¶
- Constants
- func AsInterfaceType(name string, kind common.CompositeKind) string
- func AssertEqualWithDiff(t *testing.T, expected, actual any)
- func AssertValueSlicesEqual(t testing.TB, inter *interpreter.Interpreter, ...) bool
- func AssertValuesEqual(t testing.TB, interpreter *interpreter.Interpreter, ...) bool
- func DeploymentTransaction(name string, contract []byte) []byte
- func RemovalTransaction(name string) []byte
- func RequireValuesEqual(t testing.TB, inter *interpreter.Interpreter, ...)
- func UpdateTransaction(name string, contract []byte) []byte
- func ValuesAreEqual(inter *interpreter.Interpreter, expected, actual interpreter.Value) bool
- type OccurrenceMatcher
Constants ¶
View Source
const ImportedLocation = common.StringLocation("imported")
ImportedLocation is used as the default location for imported programs in tests.
View Source
const TestLocation = common.StringLocation("test")
TestLocation is used as the default location for programs in tests.
Variables ¶
This section is empty.
Functions ¶
func AsInterfaceType ¶ added in v0.2.0
func AsInterfaceType(name string, kind common.CompositeKind) string
func AssertEqualWithDiff ¶
AssertEqualWithDiff asserts that two objects are equal.
If the objects are not equal, this function prints a human-readable diff.
func AssertValueSlicesEqual ¶ added in v0.20.0
func AssertValueSlicesEqual(t testing.TB, inter *interpreter.Interpreter, expected, actual []interpreter.Value) bool
func AssertValuesEqual ¶ added in v0.20.0
func AssertValuesEqual(t testing.TB, interpreter *interpreter.Interpreter, expected, actual interpreter.Value) bool
func DeploymentTransaction ¶ added in v0.5.0
func RemovalTransaction ¶ added in v0.10.5
func RequireValuesEqual ¶ added in v0.20.0
func RequireValuesEqual(t testing.TB, inter *interpreter.Interpreter, expected, actual interpreter.Value)
func UpdateTransaction ¶ added in v0.10.1
func ValuesAreEqual ¶ added in v0.20.0
func ValuesAreEqual(inter *interpreter.Interpreter, expected, actual interpreter.Value) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.