(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestConvertDerivedByteSlice(t *testing.T) { |
| 32 | type derived []uint8 |
| 33 | |
| 34 | output, err := converter{}.ConvertValue(derived("value")) |
| 35 | if err != nil { |
| 36 | t.Fatal("Byte slice not convertible", err) |
| 37 | } |
| 38 | |
| 39 | if !bytes.Equal(output.([]byte), []byte("value")) { |
| 40 | t.Fatalf("Byte slice not converted, got %#v %T", output, output) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestConvertDerivedUnsupportedSlice(t *testing.T) { |
| 45 | type derived []int |
nothing calls this directly
no test coverage detected