MCPcopy Index your code
hub / github.com/cockroachdb/errors / AssertDeepEqual

Method AssertDeepEqual

testutils/simplecheck.go:104–110  ·  view source on GitHub ↗

AssertDeepEqual asserts that the value is equal to some reference.

(val, ref interface{})

Source from the content-addressed store, hash-verified

102
103// AssertDeepEqual asserts that the value is equal to some reference.
104func (t *T) AssertDeepEqual(val, ref interface{}) {
105 t.Helper()
106 if !reflect.DeepEqual(val, ref) {
107 t.failWithf(true, "assertion failed: values not equal\ngot: %# v\nexpected: %# v",
108 pretty.Formatter(val), pretty.Formatter(ref))
109 }
110}
111
112// Check calls t.Error if the condition is false. Also
113// the text of the condition is printed.

Callers 1

TestAssertFunction · 0.80

Calls 1

failWithfMethod · 0.95

Tested by 1

TestAssertFunction · 0.64