MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / assertFSListPathRequired

Function assertFSListPathRequired

server/mcp/list_test.go:32–42  ·  view source on GitHub ↗
(t *testing.T, raw json.RawMessage)

Source from the content-addressed store, hash-verified

30}
31
32func assertFSListPathRequired(t *testing.T, raw json.RawMessage) {
33 t.Helper()
34
35 _, err := parseFSListArgs(raw)
36 if err == nil {
37 t.Fatal("expected error")
38 }
39 if err.Code != -32602 || err.Message != "path is required" {
40 t.Fatalf("unexpected error: %+v", err)
41 }
42}
43
44func assertFSListInvalidArguments(t *testing.T, raw json.RawMessage) {
45 t.Helper()

Callers 1

Calls 1

parseFSListArgsFunction · 0.85

Tested by

no test coverage detected