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

Function test_limit

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

Source from the content-addressed store, hash-verified

389
390 #[test]
391 fn test_limit() -> ResultTest<()> {
392 let (db, _) = create_data(5)?;
393
394 let result = run_for_testing(&db, "SELECT * FROM inventory limit 2")?;
395
396 let (_, input) = create_data(2)?;
397
398 assert_eq!(result, input.data, "Inventory");
399 Ok(())
400 }
401
402 #[test]
403 fn test_count() -> 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…