()
| 126 | |
| 127 | #[test] |
| 128 | fn classifies_run_dir() { |
| 129 | let scope = PathBuf::from("/tmp/scope"); |
| 130 | let p = PathBuf::from("/tmp/scope/dream/runs/run_xyz"); |
| 131 | let e = classify(&scope, &p); |
| 132 | assert!(matches!( |
| 133 | e, |
| 134 | SseEventBody::RunCreated { trace_id, run_id } |
| 135 | if trace_id == "dream" && run_id == "run_xyz" |
| 136 | )); |
| 137 | } |
| 138 | |
| 139 | #[test] |
| 140 | fn classifies_outside_scope() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…