(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestAuthentication(t *testing.T) { |
| 11 | a := auth.AuthenticateSingleUser("user1", "password1") |
| 12 | verifyAuthenticator(t, a, "user1", "password1", true) |
| 13 | verifyAuthenticator(t, a, "user1", "password2", false) |
| 14 | verifyAuthenticator(t, a, "user1", "password11", false) |
| 15 | verifyAuthenticator(t, a, "user1a", "password1", false) |
| 16 | verifyAuthenticator(t, a, "user1a", "password1a", false) |
| 17 | } |
| 18 | |
| 19 | func TestCombineAuthenticators_Empty(t *testing.T) { |
| 20 | a := auth.CombineAuthenticators() |
nothing calls this directly
no test coverage detected