()
| 293 | |
| 294 | #[test] |
| 295 | fn counter_increments() { |
| 296 | let m = AuthMetrics::new(); |
| 297 | m.record_auth_success("jwt"); |
| 298 | m.record_auth_success("jwt"); |
| 299 | m.record_auth_failure("password"); |
| 300 | |
| 301 | assert_eq!(m.auth_success_jwt.load(Ordering::Relaxed), 2); |
| 302 | assert_eq!(m.auth_failure_password.load(Ordering::Relaxed), 1); |
| 303 | } |
| 304 | |
| 305 | #[test] |
| 306 | fn histogram_bucketing() { |
nothing calls this directly
no test coverage detected