Skip to content

test(go): expand helper coverage#6

Merged
halukerenozlu merged 1 commit into
masterfrom
codex-improve-helper-coverage
Jun 1, 2026
Merged

test(go): expand helper coverage#6
halukerenozlu merged 1 commit into
masterfrom
codex-improve-helper-coverage

Conversation

@halukerenozlu

Copy link
Copy Markdown
Owner

What does this PR do?

Expands low-risk helper test coverage for user-friendly error handling and session UI helper functions. This is a test-only change and does not modify runtime behavior.

Related issues

N/A

Changes

  • Add tests for not-found error formatting, path extraction, suggestions, and redaction
  • Add tests for typed command normalization and approval response labels
  • Add tests for session model/provider helper functions
  • Add tests for session formatting, truncation, token estimate, and pricing helpers

How to test

Steps a reviewer can follow to verify the change manually:

  1. Run go test ./... -count=1
  2. Run go test -coverprofile .\coverage.out ./...
  3. Run go tool cover -func .\coverage.out and confirm total coverage is around 70.1%

Checklist

  • Tests pass (go test ./... -count=1)
  • No vet warnings (go vet ./...)
  • Build succeeds (make build)
  • Conventional commit message (e.g. feat(go/agent): ...)
  • Docs updated if behaviour changed
  • No breaking changes (or described below)

Co-Authored-By: OpenAI Codex GPT 5.5 <noreply@openai.com>
@halukerenozlu halukerenozlu merged commit f6ac79a into master Jun 1, 2026
2 checks passed
@halukerenozlu halukerenozlu deleted the codex-improve-helper-coverage branch June 1, 2026 19:24
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