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

Function spans_overlap

crates/openquant/tests/backtesting_engine.rs:37–39  ·  view source on GitHub ↗
(lhs: (NaiveDateTime, NaiveDateTime), rhs: (NaiveDateTime, NaiveDateTime))

Source from the content-addressed store, hash-verified

35}
36
37fn spans_overlap(lhs: (NaiveDateTime, NaiveDateTime), rhs: (NaiveDateTime, NaiveDateTime)) -> bool {
38 lhs.0 <= rhs.1 && rhs.0 <= lhs.1
39}
40
41#[test]
42fn cpcv_path_count_matches_phi_formula() {

Calls

no outgoing calls

Tested by

no test coverage detected