(t *testing.T)
| 188 | } |
| 189 | |
| 190 | func TestAPIDispatcher_AddUserValidation(t *testing.T) { |
| 191 | t.Parallel() |
| 192 | d := NewAPIDispatcher(newTestAPI(), nil) |
| 193 | _, err := d.Handle(context.Background(), "AddUser", json.RawMessage(`{}`)) |
| 194 | if err == nil { |
| 195 | t.Fatalf("expected validation error") |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func TestAPIDispatcher_AddRemoveUserOK(t *testing.T) { |
| 200 | t.Parallel() |
nothing calls this directly
no test coverage detected