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

Function TestConvertDerivedUnsupportedSlice

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

Source from the content-addressed store, hash-verified

42}
43
44func TestConvertDerivedUnsupportedSlice(t *testing.T) {
45 type derived []int
46
47 _, err := converter{}.ConvertValue(derived{1})
48 if err == nil || err.Error() != "unsupported type mysql.derived, a slice of int" {
49 t.Fatal("Unexpected error", err)
50 }
51}
52
53func TestConvertDerivedBool(t *testing.T) {
54 type derived bool

Callers

nothing calls this directly

Calls 2

ConvertValueMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected