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

Function TestParseFSListArgsRejectsInvalidJSON

server/mcp/list_test.go:18–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestParseFSListArgsRejectsInvalidJSON(t *testing.T) {
19 assertFSListInvalidArguments(t, json.RawMessage(`"bad"`))
20}
21
22func TestParseFSListArgs(t *testing.T) {
23 args, err := parseFSListArgs(json.RawMessage(`{"path":"/movies","password":"secret","refresh":true,"page":2,"per_page":10}`))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected