test(handlers): add 14 additional pure-function cases to org_helpers_pure_test.go #840

Merged
devops-engineer merged 1 commits from feat/709-org-helpers-additional-tests into staging 2026-05-13 22:04:34 +00:00

1 Commits

Author SHA1 Message Date
8ad125d0cf test(handlers): add 14 additional pure-function cases to org_helpers_pure_test.go
Some checks failed
CI / Canvas Deploy Reminder (pull_request) Blocked by required conditions
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 27s
Harness Replays / detect-changes (pull_request) Successful in 22s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 27s
qa-review / approved (pull_request) Failing after 26s
gate-check-v3 / gate-check (pull_request) Successful in 45s
CI / Detect changes (pull_request) Successful in 1m15s
security-review / approved (pull_request) Failing after 31s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, l
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m21s
sop-checklist-gate / gate (pull_request) Successful in 27s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 1m23s
sop-tier-check / tier-check (pull_request) Successful in 28s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 1m15s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m31s
Harness Replays / Harness Replays (pull_request) Successful in 16s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 1m18s
CI / Platform (Go) (pull_request) Failing after 4m11s
CI / Canvas (Next.js) (pull_request) Failing after 13m33s
CI / Shellcheck (E2E scripts) (pull_request) Failing after 13m37s
CI / Python Lint & Test (pull_request) Failing after 13m33s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 13m26s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Failing after 13m23s
CI / all-required (pull_request) Staging sync from main; code tested on main
audit-force-merge / audit (pull_request) Successful in 11s
Extends the staging org_helpers_pure_test.go with coverage from feat/709
that was missing due to add/add conflict when the base branch diverged.

New test cases:
- expandWithEnv: BracedVar, DollarVar, Mixed, MissingVar, EmptyMap,
  LiteralDollar, PartiallyPresent
- mergeCategoryRouting: WorkspaceAddsCategory, EmptyListDropsCategory,
  EmptyDefaultKeySkipped, EmptyWorkspaceKeySkipped, DoesNotMutateInputs
- renderCategoryRoutingYAML: SingleCategory, MultipleCategoriesSorted,
  EmptyListCategory (join existing coverage)
- appendYAMLBlock: BothEmpty, ExistingHasNewline, ExistingNoNewline,
  ExistingEmpty, NilExisting
- mergePlugins: DefaultsOnly, WorkspaceAdds, DeduplicationOrder,
  ExclusionThenAddSameName
- isSafeRoleName: SpecialCharsRejected

Closes #709
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 18:57:33 +00:00