MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / make_request

Function make_request

nodedb/src/data/executor/core_loop/tests.rs:48–65  ·  view source on GitHub ↗
(plan: PhysicalPlan)

Source from the content-addressed store, hash-verified

46}
47
48fn make_request(plan: PhysicalPlan) -> Request {
49 Request {
50 request_id: RequestId::new(1),
51 tenant_id: TenantId::new(1),
52 database_id: DatabaseId::DEFAULT,
53 vshard_id: VShardId::new(0),
54 plan,
55 deadline: Instant::now() + Duration::from_secs(5),
56 priority: Priority::Normal,
57 trace_id: TraceId::ZERO,
58 consistency: ReadConsistency::Strong,
59 idempotency_key: None,
60 event_source: crate::event::EventSource::User,
61 user_roles: Vec::new(),
62 user_id: None,
63 statement_digest: None,
64 }
65}
66
67#[test]
68fn empty_tick_processes_nothing() {

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected