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

Function invalid

atomic-repository/src/workflow_usage.rs:189–193  ·  view source on GitHub ↗
(message: &str)

Source from the content-addressed store, hash-verified

187}
188
189fn invalid(message: &str) -> RepositoryError {
190 RepositoryError::InvalidOperation {
191 message: message.into(),
192 }
193}
194fn add(a: u64, b: u64) -> Result<u64, RepositoryError> {
195 a.checked_add(b)
196 .ok_or_else(|| invalid("AI usage total exceeds u64; refusing to wrap or understate usage"))

Callers 2

addFunction · 0.70
metadata_objectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected