(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestPrint(t *testing.T) { |
| 26 | pos := position.NewPosition(1, 2, 3, 4) |
| 27 | |
| 28 | Error := errors.NewError("message", pos) |
| 29 | |
| 30 | actual := Error.String() |
| 31 | |
| 32 | expected := "message at line 1" |
| 33 | |
| 34 | assert.DeepEqual(t, expected, actual) |
| 35 | } |
| 36 | |
| 37 | func TestPrintWithotPos(t *testing.T) { |
| 38 | Error := errors.NewError("message", nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…