()
| 106 | let (_, names) = load_prices_and_names(); |
| 107 | let mut hrp = HierarchicalRiskParity::new(); |
| 108 | let err = hrp.allocate(&names, None, None, None, None, false).unwrap_err(); |
| 109 | assert_eq!(err, HrpError::NoData); |
| 110 | } |
| 111 | |
| 112 | #[test] |
| 113 | fn test_hrp_with_input_as_returns() { |
| 114 | let (prices, names) = load_prices_and_names(); |
| 115 | let returns = returns_from_prices(&prices); |
| 116 | let mut hrp = HierarchicalRiskParity::new(); |
nothing calls this directly
no test coverage detected