MCPcopy Create free account
hub / github.com/cogentcore/core / TestArgsPrint

Function TestArgsPrint

cli/cli_test.go:210–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

208}
209
210func TestArgsPrint(t *testing.T) {
211 t.Skip("prints all possible args")
212
213 cfg := &TestConfig{}
214 allFields := &fields{}
215 addFields(cfg, allFields, "")
216 allFlags := &fields{}
217 addFlags(allFields, allFlags, []string{}, map[string]string{})
218
219 fmt.Println("Args:")
220 fmt.Println(strings.Join(allFlags.Keys(), "\n"))
221}
222
223func TestSetFromArgs(t *testing.T) {
224 cfg := &TestConfig{}

Callers

nothing calls this directly

Calls 4

addFieldsFunction · 0.85
addFlagsFunction · 0.85
PrintlnMethod · 0.80
KeysMethod · 0.80

Tested by

no test coverage detected