File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments