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

Method add

atomic-repository/src/workflow_usage.rs:178–186  ·  view source on GitHub ↗
(&mut self, other: &Self)

Source from the content-addressed store, hash-verified

176
177impl Tokens {
178 fn add(&mut self, other: &Self) -> Result<(), RepositoryError> {
179 self.input = add(self.input, other.input)?;
180 self.output = add(self.output, other.output)?;
181 self.reasoning = add(self.reasoning, other.reasoning)?;
182 self.cache_read = add(self.cache_read, other.cache_read)?;
183 self.cache_write = add(self.cache_write, other.cache_write)?;
184 self.total = add(self.total, other.total)?;
185 Ok(())
186 }
187}
188
189fn invalid(message: &str) -> RepositoryError {

Callers 1

summarizeFunction · 0.45

Calls 1

addFunction · 0.70

Tested by

no test coverage detected