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

Function TestInsertEmptyText

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

Source from the content-addressed store, hash-verified

271}
272
273func TestInsertEmptyText(t *testing.T) {
274 check(
275 t,
276 []string{
277 "My First Line",
278 "\t\tMy Second Line",
279 " Third Line",
280 "",
281 "1",
282 },
283 []operation{
284 {
285 start: Loc{0, 0},
286 end: Loc{0, 0},
287 text: []string{
288 "",
289 },
290 },
291 },
292 []string{
293 "My First Line",
294 "\t\tMy Second Line",
295 " Third Line",
296 "",
297 "1",
298 },
299 )
300}
301
302func TestLastOpIsNoOp(t *testing.T) {
303 check(

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected