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

Function TestConvertJSON

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

Source from the content-addressed store, hash-verified

137}
138
139func TestConvertJSON(t *testing.T) {
140 raw := json.RawMessage("{}")
141
142 out, err := converter{}.ConvertValue(raw)
143
144 if err != nil {
145 t.Fatal("json.RawMessage was failed in convert", err)
146 }
147
148 if _, ok := out.(json.RawMessage); !ok {
149 t.Fatalf("json.RawMessage converted, got %#v %T", out, out)
150 }
151}

Callers

nothing calls this directly

Calls 1

ConvertValueMethod · 0.80

Tested by

no test coverage detected