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

Function TestSet

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

Source from the content-addressed store, hash-verified

1008}
1009
1010func TestSet(t *testing.T) {
1011 p := newArgument("N", nil)
1012 q := newArgument("N", nil)
1013 if reflect.DeepEqual(p, q) != true {
1014 t.Fail()
1015 }
1016 pl := patternList{newArgument("N", nil), newArgument("N", nil)}
1017 ql := patternList{newArgument("N", nil)}
1018 if reflect.DeepEqual(pl.unique(), ql.unique()) != true {
1019 t.Fail()
1020 }
1021}
1022
1023func TestPatternFixIdentities1(t *testing.T) {
1024 p := newRequired(

Callers

nothing calls this directly

Calls 2

uniqueMethod · 0.95
newArgumentFunction · 0.85

Tested by

no test coverage detected