MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestValueStringDefault

Function TestValueStringDefault

pkg/sql/ast/value_test.go:511–521  ·  view source on GitHub ↗

Test Value.String() default case with non-Number type

(t *testing.T)

Source from the content-addressed store, hash-verified

509
510// Test Value.String() default case with non-Number type
511func TestValueStringDefault(t *testing.T) {
512 value := Value{
513 Type: NumberValue,
514 Value: 42, // Not a Number struct, just an int
515 }
516 got := value.String()
517 expected := "42"
518 if got != expected {
519 t.Errorf("Value.String() default case = %v, want %v", got, expected)
520 }
521}
522
523// Test DateTimeField.String() method

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected