(t *testing.T)
| 100 | } |
| 101 | |
| 102 | func TestAPIDispatcher_UnknownMethod(t *testing.T) { |
| 103 | t.Parallel() |
| 104 | d := NewAPIDispatcher(newTestAPI(), nil) |
| 105 | _, err := d.Handle(context.Background(), "DoesNotExist", nil) |
| 106 | if err == nil || !strings.Contains(err.Error(), "unknown method") { |
| 107 | t.Fatalf("expected unknown method err, got %v", err) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestAPIDispatcher_StreamingRequiresSender(t *testing.T) { |
| 112 | t.Parallel() |
nothing calls this directly
no test coverage detected