Skip to content

coverage: final push — matchFile/loadPlugin/printVersionInfo/formatDate to 100%#117

Closed
Delqhi wants to merge 2 commits into
mainfrom
coverage-final-push
Closed

coverage: final push — matchFile/loadPlugin/printVersionInfo/formatDate to 100%#117
Delqhi wants to merge 2 commits into
mainfrom
coverage-final-push

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Pushes coverage for matchFile, matchDir, loadPlugin, printVersionInfo, formatDate to 100%. Adds targeted tests for goSearch maxResults paths, searchSingleFile truncation, copyDir full walk, and more.

Remaining gaps targeted for parallel subagent delegation:

  • rgSearch (92.7%), goSearch (87.9%), isBinaryFile (88.9%)
  • scoreRelevanceScout (87.5%), searchSingleFile (90.0%)
  • copyDir (84.6%), runSelfUpdateWithDeps (98.0%)
  • extractTarGz (88.0%), extractZip (89.5%)

Delqhi added 2 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/
@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 3:09pm

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

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

if err := saveIndexEncode(enc, pi); err != nil {
f.Close()
os.Remove(tmp)
saveIndexRemove(tmp)
if err := f.Close(); err != nil {
os.Remove(tmp)
if err := saveIndexClose(f); err != nil {
saveIndexRemove(tmp)
if err := deps.rename(extractedBinary, binaryPath); err != nil {
// Restore backup on failure.
os.Rename(backupPath, binaryPath)
deps.rename(backupPath, binaryPath)
// Make executable (on Unix).
if runtime.GOOS != "windows" {
os.Chmod(binaryPath, 0755)
deps.chmod(binaryPath, 0755)

// Remove backup on success.
os.Remove(backupPath)
deps.remove(backupPath)
}
tmpName := tmp.Name()
cleanup := func() { tmp.Close(); os.Remove(tmpName) }
cleanup := func() { hooks.closeFile(tmp); hooks.remove(tmpName) }
}
tmpName := tmp.Name()
cleanup := func() { tmp.Close(); os.Remove(tmpName) }
cleanup := func() { hooks.closeFile(tmp); hooks.remove(tmpName) }
if err := tmp.Close(); err != nil {
os.Remove(tmpName)
if err := hooks.closeFile(tmp); err != nil {
hooks.remove(tmpName)
if err := os.Chmod(tmpName, mode); err != nil {
os.Remove(tmpName)
if err := hooks.chmod(tmpName, mode); err != nil {
hooks.remove(tmpName)
if err := os.Rename(tmpName, path); err != nil {
os.Remove(tmpName)
if err := hooks.rename(tmpName, path); err != nil {
hooks.remove(tmpName)
@Delqhi

Delqhi commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by PR #127 which includes all coverage targets and additional work.

@Delqhi Delqhi closed this Jun 14, 2026
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