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

Function TestConvertDerivedBool

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

Source from the content-addressed store, hash-verified

51}
52
53func TestConvertDerivedBool(t *testing.T) {
54 type derived bool
55
56 output, err := converter{}.ConvertValue(derived(true))
57 if err != nil {
58 t.Fatal("Derived bool type not convertible", err)
59 }
60
61 if output != true {
62 t.Fatalf("Derived bool type not converted, got %#v %T", output, output)
63 }
64}
65
66func TestConvertPointer(t *testing.T) {
67 str := "value"

Callers

nothing calls this directly

Calls 2

derivedTypeAlias · 0.85
ConvertValueMethod · 0.80

Tested by

no test coverage detected