MCPcopy Create free account
hub / github.com/douglance/devsql / test_query_branches

Function test_query_branches

crates/vcsql/tests/integration.rs:106–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105#[test]
106fn test_query_branches() {
107 let temp = create_test_repo();
108 let mut repo = GitRepo::open(temp.path()).expect("Failed to open repo");
109 let mut engine = SqlEngine::new().expect("Failed to create engine");
110
111 engine
112 .load_tables_for_query("SELECT * FROM branches", &mut repo)
113 .expect("Failed to load tables");
114
115 let result = engine
116 .execute("SELECT name FROM branches")
117 .expect("Failed to execute query");
118
119 assert!(result.row_count() >= 1, "Should have at least one branch");
120}
121
122#[test]
123fn test_extract_table_names() {

Callers

nothing calls this directly

Calls 4

pathMethod · 0.80
load_tables_for_queryMethod · 0.80
create_test_repoFunction · 0.70
executeMethod · 0.45

Tested by

no test coverage detected