Addresses latest PR review comments:
1. Add NaN/Inf validation for QPS parameter
- Added math.IsInf() check with sign=0 to catch both +Inf and -Inf
- Added math.IsNaN() check to catch NaN values
- Updated error message to indicate "must be > 0 and finite"
- Prevents invalid values from being used as cache keys (NaN != NaN)
2. Make TestNewTracker_ValidQPSBurst self-contained
- Creates a temporary valid kubeconfig file for testing
- No longer depends on developer/CI environment having a kubeconfig
- Test is now deterministic and won't be flaky
- Properly asserts that tracker is created when validation passes
3. Add comprehensive test coverage
- TestNewTracker_NaNQPS: Tests NaN validation
- TestNewTracker_InfQPS: Tests +Inf validation
- All tests use testify/require for setup assertions
All validation tests pass, ensuring robust input validation.
Signed-off-by: yxxhero <aiopsclub@163.com>