- Updated the auto-refresh tests in cache_test.go to utilize fresh cache instances for each test, ensuring isolation and reliability. - Improved assertions to verify cache stability after stopping auto-refresh and confirmed that multiple start calls replace previous ones without leaking goroutines. - Added tests to check for safe behavior during rapid start/stop cycles and ensured that stopping without starting does not cause panics. - Enhanced overall test coverage and clarity, contributing to better maintainability and understanding of the cache's auto-refresh functionality. |
||
|---|---|---|
| .. | ||
| clock.go | ||
| clock_test.go | ||
| control.go | ||
| control_test.go | ||
| trigger.go | ||
| trigger_test.go | ||