Skip to content

Commit cc75ff1

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent c5740ff commit cc75ff1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/planbuilder/parse_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,18 +3022,18 @@ func TestParseErrImplementsError(t *testing.T) {
30223022
// Create a parseErr directly to test the Error() method implementation
30233023
originalErr := sql.ErrColumnNotFound.New("test_column", "test_table")
30243024
pErr := parseErr{err: originalErr}
3025-
3025+
30263026
// Test that parseErr implements the error interface
30273027
var _ error = pErr
3028-
3028+
30293029
// Test that Error() returns the underlying error message
30303030
require.Equal(t, originalErr.Error(), pErr.Error())
3031-
3031+
30323032
// Test that when formatted as string, it shows meaningful content
30333033
formatted := fmt.Sprintf("%v", pErr)
30343034
require.Contains(t, formatted, "test_column")
30353035
require.NotContains(t, formatted, "0x", "Should not show memory address")
3036-
3036+
30373037
// Test that the error message is not a struct format
30383038
require.NotContains(t, formatted, "{github.com/dolthub/go-mysql-server/sql/planbuilder.parseErr")
30393039
}

0 commit comments

Comments
 (0)