MCPcopy
hub / github.com/cornelk/hashmap / Equal

Function Equal

assert/assert.go:41–49  ·  view source on GitHub ↗

Equal asserts that two objects are equal.

(t *testing.T, expected, actual any, errorMessage ...string)

Source from the content-addressed store, hash-verified

39
40// Equal asserts that two objects are equal.
41func Equal(t *testing.T, expected, actual any, errorMessage ...string) {
42 t.Helper()
43 if equal(expected, actual) {
44 return
45 }
46
47 msg := fmt.Sprintf("Not equal: \nexpected: %v\nactual : %v", expected, actual)
48 fail(t, msg, errorMessage...)
49}
50
51// True asserts that the specified value is true.
52func True(t *testing.T, value bool, errorMessage ...string) {

Callers 15

TestLog2Function · 0.92
TestHashCollisionFunction · 0.92
TestAliasTypeSupportFunction · 0.92
TestNewFunction · 0.92
TestSetStringFunction · 0.92
TestSetUint8Function · 0.92
TestSetInt16Function · 0.92
TestSetFloat32Function · 0.92
TestSetFloat64Function · 0.92
TestSetInt64Function · 0.92
TestInsertFunction · 0.92
TestGetNonExistingItemFunction · 0.92

Calls 2

equalFunction · 0.85
failFunction · 0.85

Tested by 15

TestLog2Function · 0.74
TestHashCollisionFunction · 0.74
TestAliasTypeSupportFunction · 0.74
TestNewFunction · 0.74
TestSetStringFunction · 0.74
TestSetUint8Function · 0.74
TestSetInt16Function · 0.74
TestSetFloat32Function · 0.74
TestSetFloat64Function · 0.74
TestSetInt64Function · 0.74
TestInsertFunction · 0.74
TestGetNonExistingItemFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…