MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / TestAPIDispatcher_AddUserValidation

Function TestAPIDispatcher_AddUserValidation

internal/nodeagent/dispatch_test.go:190–197  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

188}
189
190func 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
199func TestAPIDispatcher_AddRemoveUserOK(t *testing.T) {
200 t.Parallel()

Callers

nothing calls this directly

Calls 3

HandleMethod · 0.95
NewAPIDispatcherFunction · 0.85
newTestAPIFunction · 0.85

Tested by

no test coverage detected