mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add linter, fix linting issue
This commit is contained in:
@ -10,6 +10,8 @@ import (
|
||||
)
|
||||
|
||||
func TestParseSearchExpr(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
searchExpr search.Expression
|
||||
@ -206,6 +208,8 @@ func TestParseSearchExpr(t *testing.T) {
|
||||
}
|
||||
|
||||
func assertError(t *testing.T, exp, got error) {
|
||||
t.Helper()
|
||||
|
||||
switch {
|
||||
case exp == nil && got != nil:
|
||||
t.Fatalf("expected: nil, got: %v", got)
|
||||
|
Reference in New Issue
Block a user