MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / test_nested

Function test_nested

crates/core/src/sql/execute.rs:1175–1187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1173
1174 #[test]
1175 fn test_nested() -> ResultTest<()> {
1176 let (db, _) = create_data(2)?;
1177
1178 let mut result = run_for_testing(
1179 &db,
1180 "SELECT inventory_id FROM inventory WHERE (inventory_id = 1 OR inventory_id = 2 AND (true))",
1181 )?;
1182
1183 result.sort();
1184
1185 assert_eq!(result, vec![product![1u64], product![2u64]], "Inventory");
1186 Ok(())
1187 }
1188
1189 #[test]
1190 fn test_inner_join() -> ResultTest<()> {

Callers

nothing calls this directly

Calls 3

create_dataFunction · 0.85
run_for_testingFunction · 0.85
OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…