Skip to content

Conversation

meltsufin
Copy link
Member

No description provided.

Refactors the main function to be more testable by extracting the logic into a `runCLI` function. The logging setup is also extracted into a `parseLogLevel` function to allow for easier testing. This change increases the test coverage of main.go from 65.5% to 96.9%.
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Oct 11, 2025
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.53%. Comparing base (03fba01) to head (0299c62).
⚠️ Report is 8384 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@ ## main #3936 +/- ## ========================================== + Coverage 87.96% 97.53% +9.56%  ========================================== Files 156 3 -153 Lines 16198 81 -16117 Branches 1179 0 -1179 ========================================== - Hits 14248 79 -14169  + Misses 1608 2 -1606  + Partials 342 0 -342 
Flag Coverage Δ
librariangen 97.53% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
@meltsufin meltsufin requested a review from suztomo October 11, 2025 15:02
@meltsufin meltsufin force-pushed the librariangen-coverage branch from a46b846 to 3cc1f17 Compare October 11, 2025 15:05
@googleapis googleapis deleted a comment from sonarqubecloud bot Oct 11, 2025
@googleapis googleapis deleted a comment from sonarqubecloud bot Oct 11, 2025
@googleapis googleapis deleted a comment from sonarqubecloud bot Oct 11, 2025
Copy link

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Copy link

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@meltsufin meltsufin merged commit f32325e into main Oct 13, 2025
90 of 94 checks passed
@meltsufin meltsufin deleted the librariangen-coverage branch October 13, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

2 participants