(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestAPIDispatcher_Usage(t *testing.T) { |
| 72 | t.Parallel() |
| 73 | d := NewAPIDispatcher(newTestAPI(), nil) |
| 74 | body, err := d.Handle(context.Background(), "Usage", json.RawMessage(`{"reset":false}`)) |
| 75 | if err != nil { |
| 76 | t.Fatalf("Usage err: %v", err) |
| 77 | } |
| 78 | if !json.Valid(body) { |
| 79 | t.Fatalf("invalid usage body: %s", body) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestAPIDispatcher_StartRestartRoundTrip(t *testing.T) { |
| 84 | t.Parallel() |
nothing calls this directly
no test coverage detected