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

Function TestHandledWithMessagef

barriers/barriers_test.go:92–101  ·  view source on GitHub ↗

This test exercises HandledWithMessagef.

(t *testing.T)

Source from the content-addressed store, hash-verified

90
91// This test exercises HandledWithMessagef.
92func TestHandledWithMessagef(t *testing.T) {
93 tt := testutils.T{T: t}
94
95 origErr := errors.New("hello friends")
96
97 b1 := barriers.HandledWithMessage(origErr, "woo woo")
98 b2 := barriers.HandledWithMessagef(origErr, "woo %s", "woo")
99
100 tt.CheckStringEqual(b1.Error(), b2.Error())
101}
102
103func TestFormat(t *testing.T) {
104 tt := testutils.T{t}

Callers

nothing calls this directly

Calls 4

CheckStringEqualMethod · 0.95
HandledWithMessageFunction · 0.92
HandledWithMessagefFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…