Skip to content

feat(coverage): 100% coverage on scout, plugin_cmd, self-update, and related targets#127

Merged
Delqhi merged 4 commits into
mainfrom
feat/100-coverage-final
Jun 14, 2026
Merged

feat(coverage): 100% coverage on scout, plugin_cmd, self-update, and related targets#127
Delqhi merged 4 commits into
mainfrom
feat/100-coverage-final

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Achieves 100% test coverage for the st-cov1 target files:

  • scout.go (19/19 functions): rgSearch, goSearch, isBinaryFile, scoreRelevanceScout, searchSingleFile, matchFile, matchDir
  • plugin_cmd.go (4/4 functions): copyDir, loadPlugin
  • self-update.go: runSelfUpdateWithDeps, extractTarGz, extractZip, extractBinary, printVersionInfo, formatDate
  • orchestrator_cmd.go (4/4 functions)
  • serve_rw_handlers.go (6/6 functions)
  • common.go (3/3 functions)
  • oracle.go (12/12 functions)
  • serve.go handlePoc

Also adds missing test hooks where needed (filepathAbsFn, osExit, rgCommandFn, runtimeGOOS, osCreateFn, ioCopyFn, zipFileOpenFn) and cleans up committed .out coverage artifacts.

Delqhi added 3 commits June 14, 2026 17:03
…ormatDate to 100%

- Add targeted tests for dirOnly skip in matchFile
- Add regex dirOnly matching test for matchDir
- Add all definition prefix tests for scoreRelevanceScout
- Add goSearch maxResults drain/truncation tests with noRG=true
- Add searchSingleFile maxResults truncation test
- Add copyDir full walk test (files + subdirectories)
- Add loadPlugin invalid manifest test
- Add goSearch walk error test
- Add .cov.out glob to .gitignore
- Move st-cov1 issue to docs/issues/done/
…ndlers, plugin_cmd, common, oracle, handlePoc
@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 6:17pm

@github-actions

github-actions Bot commented Jun 14, 2026

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

github-actions Bot commented Jun 14, 2026

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: 27507777464 · Commit: ${github.sha}

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

Comment thread cmd/sin-code/internal/index_store.go Fixed
Comment thread cmd/sin-code/internal/index_store.go Fixed
Comment thread cmd/sin-code/internal/self-update.go Fixed
Comment thread cmd/sin-code/internal/self-update.go Fixed
Comment thread cmd/sin-code/internal/self-update.go Fixed
Comment thread cmd/sin-code/internal/write.go Fixed
Comment thread cmd/sin-code/internal/write.go Fixed
Comment thread cmd/sin-code/internal/write.go Fixed
Comment thread cmd/sin-code/internal/write.go Fixed
Comment thread cmd/sin-code/internal/write.go Fixed
Comment thread cmd/sin-code/internal/sbom.go Fixed
@Delqhi Delqhi changed the title feat(coverage): 100% coverage on scout, orchestrator_cmd, serve_rw_handlers, plugin_cmd, common, oracle, handlePoc feat(coverage): 100% coverage on scout, plugin_cmd, self-update, and related targets Jun 14, 2026
@Delqhi Delqhi force-pushed the feat/100-coverage-final branch from 56df221 to 4b1bc01 Compare June 14, 2026 18:11
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.

2 participants