(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestConvertDerivedString(t *testing.T) { |
| 19 | type derived string |
| 20 | |
| 21 | output, err := converter{}.ConvertValue(derived("value")) |
| 22 | if err != nil { |
| 23 | t.Fatal("Derived string type not convertible", err) |
| 24 | } |
| 25 | |
| 26 | if output != "value" { |
| 27 | t.Fatalf("Derived string type not converted, got %#v %T", output, output) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestConvertDerivedByteSlice(t *testing.T) { |
| 32 | type derived []uint8 |
nothing calls this directly
no test coverage detected