MCPcopy Index your code
hub / github.com/labstack/echo / TestContextTimeoutWithTimeout0

Function TestContextTimeoutWithTimeout0

middleware/context_timeout_test.go:47–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestContextTimeoutWithTimeout0(t *testing.T) {
48 t.Parallel()
49 assert.Panics(t, func() {
50 ContextTimeout(time.Duration(0))
51 })
52}
53
54func TestContextTimeoutErrorOutInHandler(t *testing.T) {
55 t.Parallel()

Callers

nothing calls this directly

Calls 2

ContextTimeoutFunction · 0.85
DurationMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…