MCPcopy Create free account
hub / github.com/docopt/docopt.go / TestIssue40

Function TestIssue40

docopt_test.go:1193–1201  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1191}
1192
1193func TestIssue40(t *testing.T) {
1194 _, output, err := parseOutput("usage: prog --help-commands | --help", []string{"--help"}, true, "", false)
1195 if err != nil || len(output) == 0 {
1196 t.Error(err)
1197 }
1198 if v, err := Parse("usage: prog --aabb | --aa", []string{"--aa"}, true, "", false, false); reflect.DeepEqual(v, map[string]interface{}{"--aabb": false, "--aa": true}) != true {
1199 t.Error(err)
1200 }
1201}
1202
1203func TestIssue34UnicodeStrings(t *testing.T) {
1204 // TODO: see if applicable

Callers

nothing calls this directly

Calls 3

parseOutputFunction · 0.85
ParseFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected