MCPcopy Create free account
hub / github.com/antchfx/xpath / Test_minusFunc

Function Test_minusFunc

xpath_test.go:256–264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

254}
255
256func 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
266func TestNodeType(t *testing.T) {
267 tests := []struct {

Callers

nothing calls this directly

Calls 2

assertEqualFunction · 0.85
assertTrueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…