MCPcopy Create free account
hub / github.com/diillson/chatcli / TestExtractNestedArg_EmptyArgs

Function TestExtractNestedArg_EmptyArgs

cli/plugins/args_extract_test.go:140–143  ·  view source on GitHub ↗

TestExtractNestedArg_EmptyArgs returns empty without panic.

(t *testing.T)

Source from the content-addressed store, hash-verified

138
139// TestExtractNestedArg_EmptyArgs returns empty without panic.
140func TestExtractNestedArg_EmptyArgs(t *testing.T) {
141 assert.Empty(t, extractNestedArg(nil, "cmd"))
142 assert.Empty(t, extractNestedArg([]string{}, "cmd"))
143}
144
145// TestExtractNestedArg_MalformedJSONFallsBack ensures broken JSON
146// doesn't crash; helper falls through to the flag-style scan.

Callers

nothing calls this directly

Calls 1

extractNestedArgFunction · 0.85

Tested by

no test coverage detected