Skip to content

test(coverage): st-cov2 cleanup — read/edit/map tests + test hooks#129

Merged
Delqhi merged 1 commit into
mainfrom
feat/ceo-cleanup-coverage
Jun 14, 2026
Merged

test(coverage): st-cov2 cleanup — read/edit/map tests + test hooks#129
Delqhi merged 1 commit into
mainfrom
feat/ceo-cleanup-coverage

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Salvages working-tree coverage changes from the PR-merge cleanup:

  • edit.go: add editWriteFile test hook to make applyEdit testable
  • map.go: track per-module file counts and add sliceContains helper
  • map_test.go: add CLI invalid-path, hot-path truncation, module-sort tests
  • read_test.go: add read.go CLI/error-branch coverage tests
  • edit_test.go: add edit.go CLI/error-branch coverage tests
  • stcov2_coverage_test.go: targeted tests for remaining sub-100% branches

All tests pass: go test ./cmd/sin-code/internal -count=1

…r applyEdit

Salvages working-tree coverage changes from the PR-merge cleanup:

- edit.go: add editWriteFile test hook to make applyEdit testable

- map.go: track per-module file counts and add sliceContains helper

- map_test.go: add CLI invalid-path, hot-path truncation, module-sort tests

- read_test.go: add read.go CLI/error-branch coverage tests

- edit_test.go: add edit.go CLI/error-branch coverage tests

- stcov2_coverage_test.go: targeted tests for remaining sub-100% branches
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 14, 2026 7:39pm

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27509858146 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@Delqhi Delqhi deleted the feat/ceo-cleanup-coverage branch June 14, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant