oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package testci
2
3import (
4 "os"
5 "path/filepath"
6 "testing"
7)
8
9// The gate once grepped for COPY REVIEW REQUIRED alone, while
10// copy-status.py marks drafts COPY REVIEW PENDING, so pending copy passed
11// (2026-11-29). Every unreviewed spelling blocks; reviewed copy passes.
12func TestCopyReleaseCheckRejectsUnreviewedCopy(t *testing.T) {
13 for marker, blocks := range map[string]bool{
14 "COPY REVIEW PENDING": true,
15 "COPY REVIEW REQUIRED": true,
16 "COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)": false,
17 "COPY APPROVED (Paul, 2026-11-13, copy-review abc, unchanged)": false,
18 "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)": false,
19 } {
20 root := t.TempDir()
21 for name, text := range map[string]string{
22 "internal/equipo/copy.go": "package equipo\nvar pageCopy = map[string]string{\n\t\"save\": \"Save\", // " + marker + "\n}\n",
23 "docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md": "## Plan 3 copy inventory (for Paul's review)\n",
24 } {
25 path := filepath.Join(root, name)
26 if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil {
27 t.Fatal(err)
28 }
29 if err := os.WriteFile(path, []byte(text), 0600); err != nil {
30 t.Fatal(err)
31 }
32 }
33 if err := CopyReleaseCheck(t, root); (err != nil) != blocks {
34 t.Errorf("%s: gate error %v, want blocked %v", marker, err, blocks)
35 }
36 }
37}
38