(t *testing.T)
| 254 | } |
| 255 | |
| 256 | func Test_minusFunc(t *testing.T) { |
| 257 | // 1 - 1 |
| 258 | assertEqual(t, float64(0), minusFunc(nil, float64(1), float64(1))) |
| 259 | // string |
| 260 | assertEqual(t, float64(0), minusFunc(nil, "1", "1")) |
| 261 | // invalid string |
| 262 | v := minusFunc(nil, "a", 1) |
| 263 | assertTrue(t, math.IsNaN(v.(float64))) |
| 264 | } |
| 265 | |
| 266 | func TestNodeType(t *testing.T) { |
| 267 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…