You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-login/login/internal/oauth2/error_test.go

17 lines
497 B
Go

// Copyright 2017 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package oauth2
import "testing"
func TestError(t *testing.T) {
err := Error{}
err.Code = "invalid_request"
err.Desc = " The request is missing a required parameter"
if got, want := err.Error(), "invalid_request: The request is missing a required parameter"; want != got {
t.Errorf("Want error message %q, got %q", want, got)
}
}