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

Method add_hunk

atomic-core/src/record/builder.rs:296–300  ·  view source on GitHub ↗

Add a graph_op to the recorded actions. # Arguments `graph_op` - The graph_op to add # Returns The index of the added graph_op (for associating inode updates).

(&mut self, graph_op: GraphOp<Option<Hash>>)

Source from the content-addressed store, hash-verified

294 ///
295 /// The index of the added graph_op (for associating inode updates).
296 pub fn add_hunk(&mut self, graph_op: GraphOp<Option<Hash>>) -> usize {
297 let index = self.actions.len();
298 self.actions.push(graph_op);
299 index
300 }
301
302 /// Associate an inode update with a graph_op.
303 ///

Callers 10

test_add_hunkFunction · 0.45
test_add_multiple_hunksFunction · 0.45
test_add_inode_updateFunction · 0.45
test_finish_with_dataFunction · 0.45
test_clearFunction · 0.45
test_stats_populatedFunction · 0.45
test_recorded_into_partsFunction · 0.45
test_recorded_actionsFunction · 0.45

Calls 2

lenMethod · 0.45
pushMethod · 0.45

Tested by 10

test_add_hunkFunction · 0.36
test_add_multiple_hunksFunction · 0.36
test_add_inode_updateFunction · 0.36
test_finish_with_dataFunction · 0.36
test_clearFunction · 0.36
test_stats_populatedFunction · 0.36
test_recorded_into_partsFunction · 0.36
test_recorded_actionsFunction · 0.36