TestIncorrectDomain checks for error when there's server name mismatch.
(t *testing.T)
| 54 | |
| 55 | // TestIncorrectDomain checks for error when there's server name mismatch. |
| 56 | func TestIncorrectDomain(t *testing.T) { |
| 57 | _, err := ParseUsernameParam(goodUserID, &invalidServerName) |
| 58 | |
| 59 | if err == nil { |
| 60 | t.Error("Invalid Domain should return an error") |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // TestBadUserID checks that ParseUsernameParam fails for invalid user ID |
| 65 | func TestBadUserID(t *testing.T) { |
nothing calls this directly
no test coverage detected