MCPcopy
hub / github.com/Velocidex/velociraptor / Equal

Function Equal

vtesting/assert/wrapper.go:33–44  ·  view source on GitHub ↗
(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

31}
32
33func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) {
34 msg_left, ok := expected.(proto.Message)
35 if ok {
36 msg_right, ok := actual.(proto.Message)
37 if ok {
38 ProtoEqual(t, msg_left, msg_right)
39 return
40 }
41 }
42
43 assert.Equal(t, expected, actual, msgAndArgs...)
44}
45
46func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) {
47 msg_left, ok := expected.(proto.Message)

Callers 15

TestNotificationsFunction · 0.92
TestEventTableUpdateMethod · 0.92
TestClientKeyLRUFunction · 0.92
TestJoinFunction · 0.92
TestPrefixFunction · 0.92
TestPagedReaderFunction · 0.92
TestExtractHuntIdFunction · 0.92
TestCompleterFunction · 0.92
TestReaderAtFunction · 0.92
TestSemverFunction · 0.92
TestFileModeFunction · 0.92

Calls 2

ProtoEqualFunction · 0.85
EqualMethod · 0.45

Tested by 15

TestNotificationsFunction · 0.74
TestEventTableUpdateMethod · 0.74
TestClientKeyLRUFunction · 0.74
TestJoinFunction · 0.74
TestPrefixFunction · 0.74
TestPagedReaderFunction · 0.74
TestExtractHuntIdFunction · 0.74
TestCompleterFunction · 0.74
TestReaderAtFunction · 0.74
TestSemverFunction · 0.74
TestFileModeFunction · 0.74