diff auth/auth_test.go @ 16:bfc035bd5132

cleaning up tests per go vet
author Paul Fisher <paul@pfish.zone>
date Fri, 30 Oct 2015 00:01:59 -0400
parents 4368a377ff64
children
line wrap: on
line diff
--- a/auth/auth_test.go	Thu Oct 29 23:56:53 2015 -0400
+++ b/auth/auth_test.go	Fri Oct 30 00:01:59 2015 -0400
@@ -112,7 +112,7 @@
 			t.Errorf("NewEntry(_) = _, %q, _; wanted to match xxxx-xxxx-xxxx-xxxx", password)
 		}
 		if !entry.Authenticate(password) {
-			t.Errorf("NewEntry(%q).Authenticate(%q, %q) failed",
+			t.Errorf("NewEntry(%q).Authenticate(%q) failed",
 				c.description, password)
 		}
 	}
@@ -142,7 +142,7 @@
 	for _, c := range cases {
 		got := entry.Authenticate(c.password)
 		if got != c.want {
-			t.Errorf("entry.Authenticate(%q) == %q, want %q",
+			t.Errorf("entry.Authenticate(%q) == %v, want %v",
 				c.password, got, c.want)
 		}
 	}
@@ -159,7 +159,7 @@
 	for _, c := range cases {
 		got := entry.Authenticate(c.password)
 		if got != c.want {
-			t.Errorf("entry.Authenticate(%q, %q) == %q, want %q",
+			t.Errorf("entry.Authenticate(%q) == %v, want %v",
 				c.password, got, c.want)
 		}
 	}