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

Function test_select_star_table

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

Source from the content-addressed store, hash-verified

1091
1092 #[test]
1093 fn test_select_star_table() -> ResultTest<()> {
1094 let (db, input) = create_data(1)?;
1095
1096 let result = run_for_testing(&db, "SELECT inventory.* FROM inventory")?;
1097
1098 assert_eq!(result, input.data, "Inventory");
1099
1100 let result = run_for_testing(
1101 &db,
1102 "SELECT inventory.inventory_id FROM inventory WHERE inventory.inventory_id = 1",
1103 )?;
1104
1105 assert_eq!(result, vec![product!(1u64)], "Inventory");
1106
1107 Ok(())
1108 }
1109
1110 #[test]
1111 fn test_select_catalog() -> 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…