Skip to content

Commit 2420f05

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
fix: remove unused error type check in fuzz test (SA4006)
1 parent 9932cd2 commit 2420f05

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pkg/sql/tokenizer/tokenizer_fuzz_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"testing"
66
"unicode/utf8"
77

8-
"github.com/ajitpratap0/GoSQLX/pkg/errors"
98
"github.com/ajitpratap0/GoSQLX/pkg/models"
109
)
1110

@@ -137,11 +136,6 @@ func FuzzTokenizer(f *testing.F) {
137136

138137
// Verify error handling consistency
139138
if err != nil {
140-
// Error should be of correct type (either *errors.Error or another error type)
141-
if _, ok := err.(*errors.Error); !ok {
142-
// Allow other error types (e.g., context errors)
143-
// Just verify it's not nil and has a message
144-
}
145139
// Error message should not be empty
146140
if err.Error() == "" {
147141
t.Errorf("Error message should not be empty for input: %q", truncateForDisplay(data, 50))

0 commit comments

Comments
 (0)