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

Function TestConstructor

errors/error_test.go:12–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestConstructor(t *testing.T) {
13 pos := position.NewPosition(1, 2, 3, 4)
14
15 actual := errors.NewError("message", pos)
16
17 expected := &errors.Error{
18 Msg: "message",
19 Pos: pos,
20 }
21
22 assert.DeepEqual(t, expected, actual)
23}
24
25func TestPrint(t *testing.T) {
26 pos := position.NewPosition(1, 2, 3, 4)

Callers

nothing calls this directly

Calls 2

NewPositionFunction · 0.92
NewErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…