MCPcopy
hub / github.com/dnote/dnote / Equal

Function Equal

pkg/assert/assert.go:64–69  ·  view source on GitHub ↗

Equal errors a test if the actual does not match the expected

(t *testing.T, a, b interface{}, message string)

Source from the content-addressed store, hash-verified

62
63// Equal errors a test if the actual does not match the expected
64func Equal(t *testing.T, a, b interface{}, message string) {
65 ok, m := checkEqual(a, b, message)
66 if !ok {
67 t.Error(m)
68 }
69}
70
71// Equalf fails a test if the actual does not match the expected
72func Equalf(t *testing.T, a, b interface{}, message string) {

Callers 15

TestDirsFunction · 0.92
testCustomDirsFunction · 0.92
TestDirsFunction · 0.92
TestFormatQuestionFunction · 0.92
TestReadYesNoFunction · 0.92
TestInitFunction · 0.92
TestAddNoteFunction · 0.92
TestEditNoteFunction · 0.92
TestEditBookFunction · 0.92
TestRemoveNoteFunction · 0.92
TestRemoveBookFunction · 0.92
TestDBPathFlagFunction · 0.92

Calls 2

checkEqualFunction · 0.85
ErrorMethod · 0.45

Tested by 15

TestDirsFunction · 0.74
testCustomDirsFunction · 0.74
TestDirsFunction · 0.74
TestFormatQuestionFunction · 0.74
TestReadYesNoFunction · 0.74
TestInitFunction · 0.74
TestAddNoteFunction · 0.74
TestEditNoteFunction · 0.74
TestEditBookFunction · 0.74
TestRemoveNoteFunction · 0.74
TestRemoveBookFunction · 0.74
TestDBPathFlagFunction · 0.74