* Order as in spec: bool byte complex64 complex128 error float32 float64 int int8 int16 int32 int64 rune string uint uint8 uint16 uint32 uint64 uintptr time.Duration time.Time */
(t *testing.T)
| 17 | */ |
| 18 | |
| 19 | func TestBool(t *testing.T) { |
| 20 | var x bool |
| 21 | if *ToBool(x) != x { |
| 22 | t.Errorf("*ToBool(%v)", x) |
| 23 | } |
| 24 | if ToBoolOrNil(x) != nil { |
| 25 | t.Errorf("ToBoolOrNil(%v)", x) |
| 26 | } |
| 27 | if GetBool(nil) != x { |
| 28 | t.Errorf("GetBool(%v)", nil) |
| 29 | } |
| 30 | |
| 31 | x = true |
| 32 | if *ToBool(x) != x { |
| 33 | t.Errorf("*ToBool(%v)", x) |
| 34 | } |
| 35 | if *ToBoolOrNil(x) != x { |
| 36 | t.Errorf("*ToBoolOrNil(%v)", x) |
| 37 | } |
| 38 | if GetBool(&x) != x { |
| 39 | t.Errorf("GetBool(%v)", &x) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestByte(t *testing.T) { |
| 44 | var x byte |
nothing calls this directly
no test coverage detected
searching dependent graphs…