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

Function test_total_tokens

atomic-core/src/change/attestation.rs:1592–1597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1590
1591 #[test]
1592 fn test_total_tokens() {
1593 let a = make_attestation();
1594 // sonnet: 176 + 8400 + 526900 + 13100 = 548576
1595 // haiku: 9400 + 403 + 0 + 0 = 9803
1596 assert_eq!(a.total_tokens(), 548_576 + 9_803);
1597 }
1598
1599 #[test]
1600 fn test_used_tokens() {

Callers

nothing calls this directly

Calls 1

make_attestationFunction · 0.85

Tested by

no test coverage detected