package main // The columns and icons spec's mutations for pages inside and the // import's pins (ยง9): a private page inside a team page, and a root // pinned again on every run. const ( insideGo = "internal/mapa/inside.go" importPinsGo = "internal/mapa/import_pins.go" ) var insideMutations = []mutation{ {gate: "IN3", test: "TestIN3PrivateInLinesAreNoPageInside", name: "a private page's In: line counts", edits: []edit{{file: insideGo, from: "\tif kind != KindPage || rung != RungTeam || " + "len(blocks) == 0 {", to: "\tif len(blocks) == 0 {"}, {file: insideGo, from: "\t\t\tif child != page.id && index.team[child] {", to: "\t\t\tif child != page.id {"}}}, {gate: "I23", test: "TestI23TheImportPinsItsRootsOnce", pkg: inside, name: "a root is offered on every run", edits: []edit{{file: importPinsGo, from: "\t\tif entry.place.Pin != nil || entry.place.PageID == 0 ||", to: "\t\tif entry.place.PageID == 0 ||"}}}, }