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

Function load_fixture

crates/openquant/tests/portfolio_optimization.rs:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31fn load_fixture() -> Value {
32 let path = Path::new(env!("CARGO_MANIFEST_DIR"))
33 .join("../../tests/fixtures/portfolio_optimization/mean_variance_fixture.json");
34 let file = std::fs::File::open(path).unwrap();
35 serde_json::from_reader(file).unwrap()
36}
37
38#[test]
39fn test_inverse_variance_weights() {

Calls

no outgoing calls

Tested by

no test coverage detected