(t *testing.T)
| 1042 | } |
| 1043 | |
| 1044 | func TestDocument_CurrentLineAfterCursor(t *testing.T) { |
| 1045 | d := &Document{ |
| 1046 | Text: "line 1\nline 2\nline 3\nline 4\n", |
| 1047 | cursorPosition: len("line 1\n" + "lin"), |
| 1048 | } |
| 1049 | ac := d.CurrentLineAfterCursor() |
| 1050 | ex := "e 2" |
| 1051 | if ac != ex { |
| 1052 | t.Errorf("Should be %#v, got %#v", ex, ac) |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | func TestDocument_CurrentLine(t *testing.T) { |
| 1057 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…