type mockAuthRequestHandler … var user1 … var user2 … func (mock *mockAuthRequestHandler) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) { … } func TestAuthenticateRequestSecondPasses(t *testing.T) { … } func TestAuthenticateRequestFirstPasses(t *testing.T) { … } func TestAuthenticateRequestSuppressUnnecessaryErrors(t *testing.T) { … } func TestAuthenticateRequestNoAuthenticators(t *testing.T) { … } func TestAuthenticateRequestNonePass(t *testing.T) { … } func TestAuthenticateRequestAdditiveErrors(t *testing.T) { … } func TestAuthenticateRequestFailEarly(t *testing.T) { … }