(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestComplex64(t *testing.T) { |
| 68 | var x complex64 |
| 69 | if *ToComplex64(x) != x { |
| 70 | t.Errorf("*ToComplex64(%v)", x) |
| 71 | } |
| 72 | if ToComplex64OrNil(x) != nil { |
| 73 | t.Errorf("ToComplex64OrNil(%v)", x) |
| 74 | } |
| 75 | if GetComplex64(nil) != x { |
| 76 | t.Errorf("GetComplex64(%v)", nil) |
| 77 | } |
| 78 | |
| 79 | x = 42 |
| 80 | if *ToComplex64(x) != x { |
| 81 | t.Errorf("*ToComplex64(%v)", x) |
| 82 | } |
| 83 | if *ToComplex64OrNil(x) != x { |
| 84 | t.Errorf("*ToComplex64OrNil(%v)", x) |
| 85 | } |
| 86 | if GetComplex64(&x) != x { |
| 87 | t.Errorf("GetComplex64(%v)", &x) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func TestComplex128(t *testing.T) { |
| 92 | var x complex128 |
nothing calls this directly
no test coverage detected
searching dependent graphs…