MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / event

Function event

atomic-core/src/pristine/txn/write/path_claim.rs:117–134  ·  view source on GitHub ↗
(event_change: u64, operation_index: u32, claimant: u64)

Source from the content-addressed store, hash-verified

115 use super::*;
116
117 fn event(event_change: u64, operation_index: u32, claimant: u64) -> PathClaimEvent {
118 PathClaimEvent::new(
119 NodeId::new(event_change),
120 operation_index,
121 PathClaimKind::File,
122 PathClaimState::Alive,
123 PathClaimId::new(
124 Position::new(NodeId::new(claimant), ChangePosition::new(10)),
125 GraphNode::root(),
126 GraphNode::new(
127 NodeId::new(event_change),
128 ChangePosition::new(0),
129 ChangePosition::new(8),
130 ),
131 NodeId::new(event_change),
132 ),
133 )
134 }
135
136 #[test]
137 fn path_claim_table_retains_every_transition_and_is_idempotent() {

Calls 1

rootFunction · 0.85