MCPcopy Create free account
hub / github.com/cockroachdb/errors / TestAdaptContextCanceled

Function TestAdaptContextCanceled

errbase/adapters_test.go:213–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

211}
212
213func TestAdaptContextCanceled(t *testing.T) {
214 // context.DeadlineExceeded is preserved exactly.
215
216 tt := testutils.T{T: t}
217 newErr := network(t, context.DeadlineExceeded)
218 tt.CheckEqual(newErr, context.DeadlineExceeded)
219}
220
221func TestAdaptOsErrors(t *testing.T) {
222 // The special os error types are preserved exactly.

Callers

nothing calls this directly

Calls 2

CheckEqualMethod · 0.95
networkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…