(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestComplex128(t *testing.T) { |
| 92 | var x complex128 |
| 93 | if *ToComplex128(x) != x { |
| 94 | t.Errorf("*ToComplex128(%v)", x) |
| 95 | } |
| 96 | if ToComplex128OrNil(x) != nil { |
| 97 | t.Errorf("ToComplex128OrNil(%v)", x) |
| 98 | } |
| 99 | if GetComplex128(nil) != x { |
| 100 | t.Errorf("GetComplex128(%v)", nil) |
| 101 | } |
| 102 | |
| 103 | x = 42 |
| 104 | if *ToComplex128(x) != x { |
| 105 | t.Errorf("*ToComplex128(%v)", x) |
| 106 | } |
| 107 | if *ToComplex128OrNil(x) != x { |
| 108 | t.Errorf("*ToComplex128OrNil(%v)", x) |
| 109 | } |
| 110 | if GetComplex128(&x) != x { |
| 111 | t.Errorf("GetComplex128(%v)", &x) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | func TestError(t *testing.T) { |
| 116 | var x error |
nothing calls this directly
no test coverage detected
searching dependent graphs…