MCPcopy Create free account
hub / github.com/Open-Quant/openquant / test_all_inputs_none

Function test_all_inputs_none

crates/openquant/tests/hrp.rs:108–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]
113fn 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();

Callers

nothing calls this directly

Calls 2

load_prices_and_namesFunction · 0.70
allocateMethod · 0.45

Tested by

no test coverage detected