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

Function test_or

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

Source from the content-addressed store, hash-verified

1158
1159 #[test]
1160 fn test_or() -> ResultTest<()> {
1161 let (db, _) = create_data(2)?;
1162
1163 let mut result = run_for_testing(
1164 &db,
1165 "SELECT inventory_id FROM inventory WHERE inventory_id = 1 OR inventory_id = 2",
1166 )?;
1167
1168 result.sort();
1169
1170 assert_eq!(result, vec![product![1u64], product![2u64]], "Inventory");
1171 Ok(())
1172 }
1173
1174 #[test]
1175 fn test_nested() -> 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…