Removes testify dependency (#462)
This implements our own assertion library so that we can remove the testify dependency. I've changed a lot of call sites so that we only have to maintain a minimal amount of assertions. Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -415,7 +415,7 @@ func requireHostModuleEquals(t *testing.T, expected, actual *wasm.Module) {
|
||||
require.Equal(t, expected.ExportSection, actual.ExportSection)
|
||||
require.Equal(t, expected.StartSection, actual.StartSection)
|
||||
require.Equal(t, expected.ElementSection, actual.ElementSection)
|
||||
require.Nil(t, actual.CodeSection) // Host functions are implemented in Go, not Wasm!
|
||||
require.Zero(t, len(actual.CodeSection)) // Host functions are implemented in Go, not Wasm!
|
||||
require.Equal(t, expected.DataSection, actual.DataSection)
|
||||
require.Equal(t, expected.NameSection, actual.NameSection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user