Browse code

Remove TestUsage, since Usage will no longer be shown on failure to parse

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)

Dan Walsh authored on 2014/09/05 05:49:01
Showing 1 changed files
... ...
@@ -151,17 +151,6 @@ func TestGet(t *testing.T) {
151 151
 	VisitAll(visitor)
152 152
 }
153 153
 
154
-func TestUsage(t *testing.T) {
155
-	called := false
156
-	ResetForTesting(func() { called = true })
157
-	if CommandLine.Parse([]string{"-x"}) == nil {
158
-		t.Error("parse did not fail for unknown flag")
159
-	}
160
-	if !called {
161
-		t.Error("did not call Usage for unknown flag")
162
-	}
163
-}
164
-
165 154
 func testParse(f *FlagSet, t *testing.T) {
166 155
 	if f.Parsed() {
167 156
 		t.Error("f.Parse() = true before Parse")