()
| 372 | |
| 373 | #[test] |
| 374 | fn eq_selectivity() { |
| 375 | let mut stats = ColumnStats::new(); |
| 376 | for i in 0..100 { |
| 377 | stats.observe(Some(&serde_json::Value::String(format!("v{i}")))); |
| 378 | } |
| 379 | let sel = stats.eq_selectivity(); |
| 380 | assert!(sel > 0.005 && sel < 0.02, "selectivity: {sel}"); |
| 381 | } |
| 382 | |
| 383 | #[test] |
| 384 | fn stats_store_roundtrip() { |
nothing calls this directly
no test coverage detected