MCPcopy Create free account
hub / github.com/VividCortex/siesta / TestToContextHandlerUnsupportedHandler

Function TestToContextHandlerUnsupportedHandler

handler_test.go:47–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestToContextHandlerUnsupportedHandler(t *testing.T) {
48 defer func() {
49 r := recover()
50 if r == nil {
51 t.Fatal("expected a panic")
52 }
53 err, _ := r.(error)
54 if want, got := ErrUnsupportedHandler, err; want != got {
55 t.Fatalf("expected %v got %v", want, got)
56 }
57 }()
58
59 _ = ToContextHandler(func() {})
60}

Callers

nothing calls this directly

Calls 1

ToContextHandlerFunction · 0.85

Tested by

no test coverage detected