()
| 134 | |
| 135 | #[test] |
| 136 | fn test_plot_effects() { |
| 137 | let x = synthetic_x(100, 13); |
| 138 | let mut fp = RegressionModelFingerprint::new(); |
| 139 | fp.fit(&NonLinearRegModel, &x, 20, None).unwrap(); |
| 140 | let lines = fp.plot_effects().unwrap(); |
| 141 | assert!(!lines.is_empty()); |
| 142 | |
| 143 | fp.fit(&NonLinearRegModel, &x, 20, Some(&[(1, 2), (3, 5)])).unwrap(); |
| 144 | let lines_pair = fp.plot_effects().unwrap(); |
| 145 | assert!(lines_pair.iter().any(|s| s.contains("pairwise"))); |
| 146 | } |
nothing calls this directly
no test coverage detected