From 68f8d7e595cb44cdc59e969b77a3e97f11716dc4 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 9 Mar 2021 13:49:12 -0500 Subject: [PATCH] Rerun make gen --- internal/auth/password/argon2_test.go | 44 +++++++++++++-------------- internal/errors/is_test.go | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/internal/auth/password/argon2_test.go b/internal/auth/password/argon2_test.go index 61be8d7125..6a316824f4 100644 --- a/internal/auth/password/argon2_test.go +++ b/internal/auth/password/argon2_test.go @@ -161,24 +161,24 @@ func TestArgon2Configuration_Readonly(t *testing.T) { func TestArgon2Configuration_Validate(t *testing.T) { tests := []struct { - name string - in *Argon2Configuration - wantErr bool - wantErrIs errors.Code + name string + in *Argon2Configuration + wantErr bool + wantErrIs errors.Code wantErrMsg string }{ { - name: "nil-configuration", - in: nil, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + name: "nil-configuration", + in: nil, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing config: password violation: error #202", }, { - name: "nil-embedded-config", - in: &Argon2Configuration{}, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + name: "nil-embedded-config", + in: &Argon2Configuration{}, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing embedded config: password violation: error #202", }, { @@ -208,8 +208,8 @@ func TestArgon2Configuration_Validate(t *testing.T) { KeyLength: 1, }, }, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing iterations: password violation: error #202", }, { @@ -223,8 +223,8 @@ func TestArgon2Configuration_Validate(t *testing.T) { KeyLength: 1, }, }, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing memory: password violation: error #202", }, { @@ -238,8 +238,8 @@ func TestArgon2Configuration_Validate(t *testing.T) { KeyLength: 1, }, }, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing threads: password violation: error #202", }, { @@ -253,8 +253,8 @@ func TestArgon2Configuration_Validate(t *testing.T) { KeyLength: 1, }, }, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing salt length: password violation: error #202", }, { @@ -268,8 +268,8 @@ func TestArgon2Configuration_Validate(t *testing.T) { KeyLength: 0, }, }, - wantErr: true, - wantErrIs: errors.PasswordInvalidConfiguration, + wantErr: true, + wantErrIs: errors.PasswordInvalidConfiguration, wantErrMsg: "password.(Argon2Configuration).validate: missing key length: password violation: error #202", }, } diff --git a/internal/errors/is_test.go b/internal/errors/is_test.go index 9ee24a28d5..6529c5af32 100644 --- a/internal/errors/is_test.go +++ b/internal/errors/is_test.go @@ -40,7 +40,7 @@ func TestError_IsUnique(t *testing.T) { }, { name: "CodeUnique", - in: errors.E(errors.WithCode(errors.NotUnique)), + in: errors.E(errors.WithCode(errors.NotUnique)), want: true, }, {