Skip to content
Snippets Groups Projects
Commit a7dc12a0 authored by ko_oler's avatar ko_oler
Browse files

fix

parent 54f9b6c0
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ func TestValidateID(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := ValidateID(tt.id); (err != nil) != tt.wantErr {
if err := ValidateID(&tt.id); (err != nil) != tt.wantErr {
t.Errorf("ValidateID() error = %v, wantErr %v", err, tt.wantErr)
}
})
......@@ -77,7 +77,7 @@ func TestValidateName(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := ValidateName(tt.name); (err != nil) != tt.wantErr {
if err := ValidateName(&tt.name); (err != nil) != tt.wantErr {
t.Errorf("ValidateName() error = %v, wantErr %v", err, tt.wantErr)
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment