(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 25 | func TestPrint(t *testing.T) { |
| 26 | pos := position.NewPosition(1, 2, 3, 4) |
nothing calls this directly
no test coverage detected
searching dependent graphs…