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) {
3022
3022
// Create a parseErr directly to test the Error() method implementation
3023
3023
originalErr := sql .ErrColumnNotFound .New ("test_column" , "test_table" )
3024
3024
pErr := parseErr {err : originalErr }
3025
-
3025
+
3026
3026
// Test that parseErr implements the error interface
3027
3027
var _ error = pErr
3028
-
3028
+
3029
3029
// Test that Error() returns the underlying error message
3030
3030
require .Equal (t , originalErr .Error (), pErr .Error ())
3031
-
3031
+
3032
3032
// Test that when formatted as string, it shows meaningful content
3033
3033
formatted := fmt .Sprintf ("%v" , pErr )
3034
3034
require .Contains (t , formatted , "test_column" )
3035
3035
require .NotContains (t , formatted , "0x" , "Should not show memory address" )
3036
-
3036
+
3037
3037
// Test that the error message is not a struct format
3038
3038
require .NotContains (t , formatted , "{github.com/dolthub/go-mysql-server/sql/planbuilder.parseErr" )
3039
3039
}
You can’t perform that action at this time.
0 commit comments