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

Function test_used_tokens

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

Source from the content-addressed store, hash-verified

1077
1078 #[test]
1079 fn test_used_tokens() {
1080 let a = make_attestation();
1081 // used = input + output only (no cache)
1082 // sonnet: 176 + 8400 = 8576
1083 // haiku: 9400 + 403 = 9803
1084 assert_eq!(a.used_tokens(), 8_576 + 9_803);
1085 }
1086
1087 #[test]
1088 fn test_cache_tokens() {

Callers

nothing calls this directly

Calls 1

make_attestationFunction · 0.85

Tested by

no test coverage detected