MCPcopy Index your code
hub / github.com/ettle/strcase / assertEqual

Function assertEqual

assert.go:19–24  ·  view source on GitHub ↗

assertEqual will fail if the two strings are not equal

(t testingT, expected, actual string)

Source from the content-addressed store, hash-verified

17
18// assertEqual will fail if the two strings are not equal
19func assertEqual(t testingT, expected, actual string) {
20 if expected != actual {
21 t.Logf("Expected: %s Actual: %s", expected, actual)
22 t.Fail()
23 }
24}

Callers 3

TestNewCaserFunction · 0.85
TestAssertEqualFunction · 0.85
TestEdgesFunction · 0.85

Calls 2

LogfMethod · 0.65
FailMethod · 0.65

Tested by 3

TestNewCaserFunction · 0.68
TestAssertEqualFunction · 0.68
TestEdgesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…