MCPcopy
hub / github.com/go-sql-driver/mysql / TestConvertPointer

Function TestConvertPointer

statement_test.go:66–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestConvertPointer(t *testing.T) {
67 str := "value"
68
69 output, err := converter{}.ConvertValue(&str)
70 if err != nil {
71 t.Fatal("Pointer type not convertible", err)
72 }
73
74 if output != "value" {
75 t.Fatalf("Pointer type not converted, got %#v %T", output, output)
76 }
77}
78
79func TestConvertSignedIntegers(t *testing.T) {
80 values := []any{

Callers

nothing calls this directly

Calls 1

ConvertValueMethod · 0.80

Tested by

no test coverage detected