Skip to content

Add test coverage for dependency touch points#336

Merged
clcollins merged 2 commits into
mainfrom
srepd/dep-coverage-tests
Jul 7, 2026
Merged

Add test coverage for dependency touch points#336
clcollins merged 2 commits into
mainfrom
srepd/dep-coverage-tests

Conversation

@clcollins

Copy link
Copy Markdown
Owner

Summary

  • Add TestBuildGlamourStyle — verifies glamour ansi.StyleConfig is correctly built from Theme colors (document, heading, link, bold, horizontal rule colors, H1 background clearing, custom theme propagation)
  • Add TestClusterFromResponse — verifies OCM SDK cmv1.ClusterClusterInfo conversion using the SDK builder API (field mapping, display name from DomainPrefix+DNS, region/hypershift/CCS extraction, cloud provider, nil-safety for optional fields)

These tests cover the functions that directly consume the dependencies being updated by Dependabot PRs #330 (glamour), #332 (ocm-sdk-go), and #333 (ocm-common), ensuring breaking changes in those bumps are caught.

Test plan

  • make test-all passes
  • New tests pass against current main
  • TestClusterFromResponse uses SDK builders (no real API calls)
  • TestBuildGlamourStyle is pure function testing (no I/O)

🤖 Generated with Claude Code

clcollins and others added 2 commits July 7, 2026 12:57
Add unit tests for functions that directly consume dependencies being
updated by Dependabot PRs #330, #332, #333:

- TestBuildGlamourStyle: verifies glamour ansi.StyleConfig is correctly
  built from Theme colors (document, heading, link, bold, HR colors)
- TestClusterFromResponse: verifies OCM SDK cmv1.Cluster → ClusterInfo
  conversion (field mapping, display name from DomainPrefix+DNS, region,
  hypershift, CCS, cloud provider, nil-safety for optional fields)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.40%. Comparing base (f9df89d) to head (3322d3d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #336      +/-   ##
==========================================
+ Coverage   66.16%   66.40%   +0.23%     
==========================================
  Files          50       50              
  Lines        8031     8031              
==========================================
+ Hits         5314     5333      +19     
+ Misses       2347     2327      -20     
- Partials      370      371       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clcollins
clcollins merged commit 1b5028b into main Jul 7, 2026
10 checks passed
@clcollins
clcollins deleted the srepd/dep-coverage-tests branch July 14, 2026 19:25
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