Skip to content

fix: deep code review passes 29-32 - rename cache types, add Eq/Ord, … - #277

Merged
mikemiles-dev merged 2 commits into
mainfrom
fix/deep-code-review-passes-29-32
Mar 15, 2026
Merged

fix: deep code review passes 29-32 - rename cache types, add Eq/Ord, …#277
mikemiles-dev merged 2 commits into
mainfrom
fix/deep-code-review-passes-29-32

Conversation

@mikemiles-dev

Copy link
Copy Markdown
Owner

…expand test coverage

  • Rename cache observability types for clarity: CacheStats → CacheInfo, CacheMetricsSnapshot → CacheMetrics, CacheMetrics → CacheMetricsInner (pub(crate)), ParserCacheStats → ParserCacheInfo
  • Rename methods: v9_cache_stats() → v9_cache_info(), ipfix_cache_stats() → ipfix_cache_info(), all_stats() → all_info(), get_source_stats() → get_source_info(), etc.
  • Move CacheInfo/ParserCacheInfo from lib.rs to metrics.rs (re-exported)
  • Add Eq to ApplicationId and Eq+Ord to DurationValue
  • Tighten test assertions (> 0 → == exact values, silent catch-all → panic)
  • Add IPFIX template withdrawal tests (individual, withdraw-all data/options, pending flow drain)
  • Add parse_bytes_as_netflow_common_flowsets tests
  • Update README, RELEASES.md, and all examples

…expand test coverage

- Rename cache observability types for clarity:
  CacheStats → CacheInfo, CacheMetricsSnapshot → CacheMetrics,
  CacheMetrics → CacheMetricsInner (pub(crate)),
  ParserCacheStats → ParserCacheInfo
- Rename methods: v9_cache_stats() → v9_cache_info(),
  ipfix_cache_stats() → ipfix_cache_info(), all_stats() → all_info(),
  get_source_stats() → get_source_info(), etc.
- Move CacheInfo/ParserCacheInfo from lib.rs to metrics.rs (re-exported)
- Add Eq to ApplicationId and Eq+Ord to DurationValue
- Tighten test assertions (> 0 → == exact values, silent catch-all → panic)
- Add IPFIX template withdrawal tests (individual, withdraw-all data/options,
  pending flow drain)
- Add parse_bytes_as_netflow_common_flowsets tests
- Update README, RELEASES.md, and all examples
@mikemiles-dev
mikemiles-dev merged commit bcf1f3d into main Mar 15, 2026
12 checks passed
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.

1 participant