Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/auth/method/basic/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
authbasicapi "github.com/trebent/kerberos/internal/oapi/auth/basic"
)

func TestAuthorizer_Authenticated(t *testing.T) {
func TestAuthorizerAuthenticated(t *testing.T) {
basic, err := New(&Opts{
AuthZConfig: map[string]*config.AuthZ{},
SQLClient: testClient,
Expand Down Expand Up @@ -58,7 +58,7 @@ func TestAuthorizer_Authenticated(t *testing.T) {
}
}

func TestAuthorizer_AuthorizedGroup(t *testing.T) {
func TestAuthorizerAuthorizedGroup(t *testing.T) {
groupName := uniqueName(t, "authZ-admin")
basic, err := New(&Opts{
AuthZConfig: map[string]*config.AuthZ{
Expand Down
2 changes: 1 addition & 1 deletion internal/db/postgres/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestPostgres(t *testing.T) {
}
}

func TestPostgres_NamedArgs(t *testing.T) {
func TestPostgresNamedArgs(t *testing.T) {
db := postgres.New(&postgres.Opts{DSN: dsn(t)})

_, err := db.Exec(t.Context(), "CREATE TABLE IF NOT EXISTS _test_pg_named (id SERIAL PRIMARY KEY, name TEXT NOT NULL)")
Expand Down
2 changes: 1 addition & 1 deletion internal/db/sqlite/sqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestSQLite(t *testing.T) {
}
}

func TestSQLite_ForeignKey(t *testing.T) {
func TestSQLiteForeignKey(t *testing.T) {
dsn := "test_fk.db"
defer func() {
if err := os.Remove(dsn); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/env/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestValidateDirPath(t *testing.T) {
}
}

func TestValidateDirPath_File(t *testing.T) {
func TestValidateDirPathFile(t *testing.T) {
t.Parallel()

dir := t.TempDir()
Expand Down
4 changes: 2 additions & 2 deletions internal/oapi/error/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestResponseHandler(t *testing.T) {
}
}

func TestResponseHandler_UnknownError(t *testing.T) {
func TestResponseHandlerUnknownError(t *testing.T) {
recorder := httptest.NewRecorder()

apierror.ResponseErrorHandler(recorder, nil, errors.New("unknown error"))
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestRequestHandler(t *testing.T) {
}
}

func TestRequestHandler_UnknownError(t *testing.T) {
func TestRequestHandlerUnknownError(t *testing.T) {
recorder := httptest.NewRecorder()

apierror.RequestErrorHandler(recorder, nil, errors.New("unknown error"))
Expand Down
Loading