(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func TestInterfaceToInt8(t *testing.T) { |
| 151 | var out int8 |
| 152 | var ok bool |
| 153 | |
| 154 | out, ok = InterfaceToInt8(int(1)) |
| 155 | require.True(t, ok) |
| 156 | require.Equal(t, int8(1), out) |
| 157 | |
| 158 | _, ok = InterfaceToInt8(float32(2)) |
| 159 | require.False(t, ok) |
| 160 | |
| 161 | _, ok = InterfaceToInt8("test") |
| 162 | require.False(t, ok) |
| 163 | } |
| 164 | |
| 165 | func TestInterfaceToInterfaceInterfaceMap(t *testing.T) { |
| 166 | var ok bool |
nothing calls this directly
no test coverage detected