"",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{1, 0},
text: []string{
"fq",
},
},
- operation{
+ {
start: Loc{3, 0},
end: Loc{0, 1},
text: []string{
"gmm",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{1, 0},
text: []string{
"o",
},
},
- operation{
+ {
start: Loc{3, 1},
end: Loc{3, 1},
text: []string{
"avb",
},
},
- operation{
+ {
start: Loc{4, 1},
end: Loc{1, 5},
text: []string{
"xuccnb",
},
[]operation{
- operation{
+ {
start: Loc{2, 3},
end: Loc{2, 3},
text: []string{
"lnqdgorosf",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{4, 0},
text: []string{
"hp",
},
},
- operation{
+ {
start: Loc{6, 0},
end: Loc{0, 1},
text: []string{
"mpx",
},
},
- operation{
+ {
start: Loc{1, 1},
end: Loc{1, 1},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{1, 1},
end: Loc{1, 1},
text: []string{
"mo",
},
},
- operation{
+ {
start: Loc{1, 3},
end: Loc{2, 4},
text: []string{
"something else",
},
[]operation{
- operation{
+ {
start: Loc{0, 1},
end: Loc{1, 1},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{0, 2},
end: Loc{1, 3},
text: []string{
"something else",
},
[]operation{
- operation{
+ {
start: Loc{0, 1},
end: Loc{0, 1},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{0, 2},
end: Loc{0, 2},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{0, 3},
end: Loc{0, 3},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{3, 0},
end: Loc{3, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{14, 2},
end: Loc{14, 2},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{2, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{13, 0},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{3, 0},
end: Loc{5, 1},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{3, 0},
end: Loc{4, 2},
text: []string{
"1",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 4},
text: []string{
"123",
},
[]operation{
- operation{
+ {
start: Loc{0, 1},
end: Loc{2, 1},
text: []string{
"\t",
},
},
- operation{
+ {
start: Loc{0, 2},
end: Loc{4, 2},
text: []string{
"\t\t<!@#fifth#@!>\t\t",
},
[]operation{
- operation{
+ {
start: Loc{2, 4},
end: Loc{6, 4},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{11, 4},
end: Loc{15, 4},
text: []string{
"{\"x\" : 1}",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{1, 0},
text: []string{
"\n ",
},
},
- operation{
+ {
start: Loc{4, 0},
end: Loc{5, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{8, 0},
end: Loc{8, 0},
text: []string{
"}",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{2, 1},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{5, 1},
end: Loc{5, 1},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{8, 1},
end: Loc{0, 2},
text: []string{
"}",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{0, 1},
text: []string{
"\t",
},
},
- operation{
+ {
start: Loc{10, 1},
end: Loc{0, 3},
text: []string{
"and the last line",
},
[]operation{
- operation{
+ {
start: Loc{4, 0},
end: Loc{0, 2},
text: []string{
"some more text",
},
},
- operation{
+ {
start: Loc{1, 2},
end: Loc{0, 3},
text: []string{
"asd",
},
},
- operation{
+ {
start: Loc{0, 4},
end: Loc{5, 4},
text: []string{
"zzzzzzzz",
},
},
- operation{
+ {
start: Loc{10, 4},
end: Loc{15, 5},
text: []string{
" ,\"e\": /*comment*/ [null] }",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{2, 0},
end: Loc{9, 0},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{15, 0},
end: Loc{13, 1},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{17, 1},
end: Loc{8, 2},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{21, 2},
end: Loc{8, 3},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{9, 3},
end: Loc{9, 3},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{27, 3},
end: Loc{27, 3},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{31, 3},
end: Loc{31, 3},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{32, 3},
end: Loc{33, 3},
text: []string{
" ,def",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{3, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{6, 0},
end: Loc{1, 1},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{2, 1},
end: Loc{2, 1},
text: []string{
"",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 5},
text: []string{
"interesting",
},
[]operation{
- operation{
+ {
start: Loc{9, 0},
end: Loc{0, 1},
text: []string{
"}",
},
[]operation{
- operation{
+ {
start: Loc{7, 0},
end: Loc{8, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{16, 2},
end: Loc{17, 2},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{17, 2},
end: Loc{17, 2},
text: []string{
" ",
},
},
- operation{
+ {
start: Loc{4, 3},
end: Loc{4, 3},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"a",
},
},
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"b",
},
},
- operation{
+ {
start: Loc{0, 0},
end: Loc{2, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"H",
},
},
- operation{
+ {
start: Loc{1, 0},
end: Loc{2, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"",
},
},
- operation{
+ {
start: Loc{1, 0},
end: Loc{2, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"H",
},
},
- operation{
+ {
start: Loc{0, 0},
end: Loc{2, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{2, 0},
text: []string{
"H",
},
},
- operation{
+ {
start: Loc{2, 0},
end: Loc{2, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{1, 0},
text: []string{
"helloworld",
},
[]operation{
- operation{
+ {
start: Loc{2, 0},
end: Loc{7, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{5, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{6, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{11, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{5, 0},
end: Loc{5, 2},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{11, 0},
end: Loc{11, 2},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 2},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{11, 0},
end: Loc{0, 2},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{1, 0},
end: Loc{1, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{5, 0},
end: Loc{5, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{6, 0},
end: Loc{6, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{11, 0},
end: Loc{11, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{0, 0},
end: Loc{0, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{11, 0},
end: Loc{11, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{6, 0},
end: Loc{6, 0},
text: []string{
"hello world",
},
[]operation{
- operation{
+ {
start: Loc{6, 0},
end: Loc{6, 0},
text: []string{
},
)
}
-
-func BenchmarkBuffer(b *testing.B) {
- for i := 0; i < b.N; i++ {
- TestAuto1(nil)
- TestAuto2(nil)
- TestAuto3(nil)
- TestAuto4(nil)
- TestBug19872UndoIsFunky(nil)
- TestBug19872UndoIsFunky_2(nil)
- TestInsertEmptyText(nil)
- TestLastOpIsNoOp(nil)
- TestInsertTextWithoutNewline1(nil)
- TestInsertTextWithoutNewline2(nil)
- TestInsertOneNewline(nil)
- TestInsertTextWithOneNewline(nil)
- TestInsertTextWithTwoNewlines(nil)
- TestInsertTextWithManyNewlines(nil)
- TestInsertMultipleNewlines(nil)
- TestDeleteEmptyText(nil)
- TestDeleteTextFromOneLine(nil)
- TestDeleteTextFromOneLine2(nil)
- TestDeleteAllTextFromALine(nil)
- TestDeleteTextFromTwoLines(nil)
- TestDeleteTextFromManyLines(nil)
- TestDeleteEverything(nil)
- TestTwoUnrelatedEdits(nil)
- TestTwoEditsOnOneLine(nil)
- TestManyEdits(nil)
- TestManyEditsReversed(nil)
- TestReplacingNewlines1(nil)
- TestReplacingNewlines2(nil)
- TestAdvanced1(nil)
- TestAdvancedSimplified(nil)
- TestIssue144(nil)
- TestIssue2586ReplacingSelectedEndOfLineWithNewlineLocksUpTheDocument(nil)
- TestIssue3980(nil)
- TestTouchingEditsTwoInsertsAtTheSamePosition(nil)
- TestTouchingEditsInsertAndReplaceTouching(nil)
- TestTouchingEditsTwoTouchingReplaces(nil)
- TestTouchingEditsTwoTouchingDeletes(nil)
- TestTouchingEditsInsertAndReplace(nil)
- TestTouchingEditsReplaceAndInsert(nil)
- TestSingleDelete1(nil)
- TestSingleDelete2(nil)
- TestSingleDelete3(nil)
- TestSingleDelete4(nil)
- TestSingleDelete5(nil)
- TestMultiDelete6(nil)
- TestMultiDelete7(nil)
- TestMultiDelete8(nil)
- TestMultiDelete9(nil)
- TestSingleInsert1(nil)
- TestSingleInsert2(nil)
- TestSingleInsert3(nil)
- TestSingleInsert4(nil)
- TestSingleInsert5(nil)
- TestMultiInsert6(nil)
- TestMultiInsert7(nil)
- TestMultiInsert8(nil)
- TestMultiInsert9(nil)
- }
-}