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

Method insert_loss

atomic-repository/src/record/move_evidence.rs:229–231  ·  view source on GitHub ↗

Add an explicit loss note.

(&mut self, loss: LossNote)

Source from the content-addressed store, hash-verified

227
228 /// Add an explicit loss note.
229 pub fn insert_loss(&mut self, loss: LossNote) -> bool {
230 self.loss_notes.insert(loss)
231 }
232
233 fn validate_version(&self) -> Result<(), MoveEvidenceError> {
234 if self.version == MOVE_EVIDENCE_VERSION {

Callers 4

sample_evidenceFunction · 0.80
record_with_lifecycleMethod · 0.80
plan_file_movesFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected