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

Method validate

atomic-repository/src/patch_evidence.rs:45–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

43
44impl PatchEvidenceLimits {
45 pub fn validate(&self) -> Result<(), RepositoryError> {
46 if self.max_operations > MAX_EVIDENCE_OPERATIONS
47 || self.max_operation_bytes > MAX_EVIDENCE_OPERATION_BYTES
48 || self.max_content_bytes > MAX_EVIDENCE_CONTENT_BYTES
49 {
50 return Err(RepositoryError::Serialization(
51 "patch evidence limits exceed hard maxima".into(),
52 ));
53 }
54 Ok(())
55 }
56}
57
58#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]

Callers 1

patch_evidenceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected