(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func 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 | } |
nothing calls this directly
no test coverage detected