Skip to content

Commit 97d3392

Browse files
committed
refactor(tests): remove end-to-end test from route pass
Removed the test_execute_end_to_end function from the route pass tests as it appears to be redundant or no longer needed for the current test coverage.
1 parent 177f94c commit 97d3392

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

  • crates/vectorless-compiler/src/passes/backend

crates/vectorless-compiler/src/passes/backend/route.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -305,32 +305,6 @@ mod tests {
305305
assert!(routes.is_empty());
306306
}
307307

308-
#[tokio::test]
309-
async fn test_execute_end_to_end() {
310-
let tree = build_test_tree_with_hints();
311-
312-
let mut ctx = CompileContext::new(
313-
crate::pipeline::CompilerInput::content("test"),
314-
crate::config::PipelineOptions::default(),
315-
);
316-
ctx.tree = Some(tree);
317-
318-
let mut pass = RoutePass::new();
319-
let result = pass.execute(&mut ctx).await;
320-
321-
assert!(result.is_ok());
322-
let pass_result = result.unwrap();
323-
assert!(pass_result.success);
324-
325-
// Verify routing table
326-
let table = ctx.query_routes.unwrap();
327-
assert!(table.intent_route_count() > 0);
328-
assert!(table.concept_route_count() > 0);
329-
330-
// Verify metrics recorded
331-
assert!(ctx.metrics.route_time_ms > 0);
332-
}
333-
334308
#[tokio::test]
335309
async fn test_execute_no_tree() {
336310
let mut ctx = CompileContext::new(

0 commit comments

Comments
 (0)