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

Function TestAssert

testutils/simplecheck_test.go:21–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19func id(x int) int { return x }
20
21func TestAssert(t *testing.T) {
22 tt := T{T: t}
23
24 tt.Run("the-test", func(t T) {
25 t.Check(id(1) == 1)
26 t.CheckEqual(1, id(1))
27 t.CheckDeepEqual(1, id(1))
28 t.Assert(id(1) == 1)
29 t.AssertEqual(1, id(1))
30 t.AssertDeepEqual(1, id(1))
31 t.CheckRegexpEqual("hello", "h.*o")
32 })
33}

Callers

nothing calls this directly

Calls 9

RunMethod · 0.95
idFunction · 0.85
CheckMethod · 0.80
CheckEqualMethod · 0.80
CheckDeepEqualMethod · 0.80
AssertMethod · 0.80
AssertEqualMethod · 0.80
AssertDeepEqualMethod · 0.80
CheckRegexpEqualMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…