MCPcopy
hub / github.com/micro-editor/micro / TestLastOpIsNoOp

Function TestLastOpIsNoOp

internal/buffer/buffer_generated_test.go:302–336  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

300}
301
302func TestLastOpIsNoOp(t *testing.T) {
303 check(
304 t,
305 []string{
306 "My First Line",
307 "\t\tMy Second Line",
308 " Third Line",
309 "",
310 "1",
311 },
312 []operation{
313 {
314 start: Loc{0, 0},
315 end: Loc{1, 0},
316 text: []string{
317 "",
318 },
319 },
320 {
321 start: Loc{0, 3},
322 end: Loc{0, 3},
323 text: []string{
324 "",
325 },
326 },
327 },
328 []string{
329 "y First Line",
330 "\t\tMy Second Line",
331 " Third Line",
332 "",
333 "1",
334 },
335 )
336}
337
338func TestInsertTextWithoutNewline1(t *testing.T) {
339 check(

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected