MCPcopy Index your code
hub / github.com/apache/answer / assertError

Function assertError

plugin/plugin_test/kv_storage_test.go:72–76  ·  view source on GitHub ↗
(t *testing.T, err error, expected error, msg string)

Source from the content-addressed store, hash-verified

70}
71
72func assertError(t *testing.T, err error, expected error, msg string) {
73 if err != expected {
74 t.Errorf("%s: expected %v, got %v", msg, expected, err)
75 }
76}
77
78// TestKVStoragePlugin implements KVStorage interface for testing
79type TestKVStoragePlugin struct {

Callers 1

TestBasicOperationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected