Skip to content

v1.1.6

Latest

Choose a tag to compare

@MysticalDevil MysticalDevil released this 27 May 07:02

v1.1.6 - 2026-05-27

What's Changed

  • refactor: Extracted doCheck() from runCheck() so the core "check" logic is independently unit-testable and no longer calls os.Exit directly.
  • fix: Removed unnecessary defensive cfg != nil checks in runCheck().
  • fix: mockUsagesJSON now panics on marshal errors instead of silently discarding them.
  • chore: Added cover.out to .gitignore.
  • test: Direct unit tests for gradientGreenToRed, renderProgressBar, buildCapabilityTable, isTaggedVersion, isForceRefresh, isValidSubscription, doCheck.
  • test: Comprehensive failure-scenario tests for config (corrupted JSON, JWT edge cases, dir errors, Rename failure) and cache (corrupted data, invalid timestamps, permission-denied, write failure, path errors).
  • test: i18n package 100% coverage (lookup fallback chain zh_HKzh, direct catalog access).
  • test: Covered all-expired balance fallback in selectPrimaryBalance and invalid end-time parse in buildSubscriptionBox.
  • test: Fixed false-positive TestDoCheck_NewClientError (LogfErrorf).
  • test: Tightened TestCLIVersion to verify dev*/v* format.
  • test: Tightened TestDoCheck_WithProgress to assert specific 99% value from mock data.
  • test: Extended ASCII capability table test to verify content, not just borders.

Coverage: 73.3% → 82.4%