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

Function add

atomic-repository/src/workflow_usage.rs:194–197  ·  view source on GitHub ↗
(a: u64, b: u64)

Source from the content-addressed store, hash-verified

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"))
197}
198
199#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
200pub(crate) struct UsageRecord {

Callers 2

addMethod · 0.70
summarizeFunction · 0.70

Calls 1

invalidFunction · 0.70

Tested by

no test coverage detected