MCPcopy Create free account
hub / github.com/z7zmey/php-parser / TestPosition

Function TestPosition

node/expr/binary/t_position_test.go:11–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestPosition(t *testing.T) {
12 expected := position.NewPosition(1, 1, 1, 1)
13 for _, n := range nodes {
14 n.SetPosition(expected)
15 actual := n.GetPosition()
16 assert.DeepEqual(t, expected, actual)
17 }
18}

Callers

nothing calls this directly

Calls 3

NewPositionFunction · 0.92
SetPositionMethod · 0.65
GetPositionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…