(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestByte(t *testing.T) { |
| 44 | var x byte |
| 45 | if *ToByte(x) != x { |
| 46 | t.Errorf("*ToByte(%v)", x) |
| 47 | } |
| 48 | if ToByteOrNil(x) != nil { |
| 49 | t.Errorf("ToByteOrNil(%v)", x) |
| 50 | } |
| 51 | if GetByte(nil) != x { |
| 52 | t.Errorf("GetByte(%v)", nil) |
| 53 | } |
| 54 | |
| 55 | x = 42 |
| 56 | if *ToByte(x) != x { |
| 57 | t.Errorf("*ToByte(%v)", x) |
| 58 | } |
| 59 | if *ToByteOrNil(x) != x { |
| 60 | t.Errorf("*ToByteOrNil(%v)", x) |
| 61 | } |
| 62 | if GetByte(&x) != x { |
| 63 | t.Errorf("GetByte(%v)", &x) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func TestComplex64(t *testing.T) { |
| 68 | var x complex64 |
nothing calls this directly
no test coverage detected
searching dependent graphs…