()
| 6 | } |
| 7 | |
| 8 | fn sample_rows() -> Vec<OhlcvRow> { |
| 9 | vec![ |
| 10 | OhlcvRow { |
| 11 | timestamp: ts(0), |
| 12 | symbol: "AAPL".to_string(), |
| 13 | open: 100.0, |
| 14 | high: 101.0, |
| 15 | low: 99.0, |
| 16 | close: 100.5, |
| 17 | volume: 10.0, |
| 18 | adj_close: 100.5, |
| 19 | }, |
| 20 | OhlcvRow { |
| 21 | timestamp: ts(60), |
| 22 | symbol: "AAPL".to_string(), |
| 23 | open: 100.5, |
| 24 | high: 101.2, |
| 25 | low: 100.3, |
| 26 | close: 101.0, |
| 27 | volume: 11.0, |
| 28 | adj_close: 101.0, |
| 29 | }, |
| 30 | OhlcvRow { |
| 31 | timestamp: ts(60), |
| 32 | symbol: "AAPL".to_string(), |
| 33 | open: 100.6, |
| 34 | high: 101.3, |
| 35 | low: 100.4, |
| 36 | close: 101.1, |
| 37 | volume: 12.0, |
| 38 | adj_close: 101.1, |
| 39 | }, |
| 40 | ] |
| 41 | } |
| 42 | |
| 43 | #[test] |
| 44 | fn clean_and_align_rows() { |
no outgoing calls
no test coverage detected