Skip to content

test: improve render coverage from 78.5% to 84.5%#65

Open
JordanCoin wants to merge 1 commit intomainfrom
automation/test-coverage-render-20260401
Open

test: improve render coverage from 78.5% to 84.5%#65
JordanCoin wants to merge 1 commit intomainfrom
automation/test-coverage-render-20260401

Conversation

@JordanCoin
Copy link
Copy Markdown
Owner

What does this PR do?

Improve render/ test coverage by exercising additional Skyline and animationModel branches, and raise the CI coverage floor because total coverage is now comfortably above the current threshold.

Type of change

  • Bug fix
  • New feature
  • New language support
  • Documentation
  • Other (test coverage)

Coverage

Scope Before After
render/ 78.5% 84.5%
Total 72.2% 73.1%

Validation

  • go test -race -coverprofile=coverage.out ./...
  • go vet ./...
  • gofmt -l .
  • Coverage floor bumped from 45.0 to 50.0

Additional notes

This PR adds 144 lines of test code in render/skyline_test.go and updates the CI coverage floor in .github/workflows/ci.yml.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases test coverage for the render/ skyline visualization by adding new tests that exercise additional Skyline title behavior and more animationModel update/view branches, and it raises the CI-enforced overall Go coverage floor accordingly.

Changes:

  • Add helper(s) and new test cases in render/skyline_test.go to cover additional Skyline and animationModel branches (including phase transitions and shooting star rendering).
  • Bump the CI coverage floor from 45.0 to 50.0 in the GitHub Actions workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
render/skyline_test.go Adds additional unit tests (and an ANSI-stripping helper) to increase coverage for skyline rendering and animation state transitions.
.github/workflows/ci.yml Raises the enforced total coverage minimum to 50.0% in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 50 to 54
run: |
total=$(go tool cover -func=coverage.out | awk '/^total:/ {gsub("%","",$3); print $3}')
# Current enforced coverage floor. Codex PRs raise this incrementally toward 90%.
min=45.0
min=50.0
awk -v t="$total" -v m="$min" 'BEGIN {
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage floor was bumped to 50.0, but the coverage badge step still uses minColorRange: 45 later in this workflow. Consider updating the badge range to match the new enforced floor to avoid confusing badge colors vs. CI enforcement.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants