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

Function test_cache_tokens

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

Source from the content-addressed store, hash-verified

1086
1087 #[test]
1088 fn test_cache_tokens() {
1089 let a = make_attestation();
1090 // cache = cache_read + cache_write
1091 // sonnet: 526900 + 13100 = 540000
1092 // haiku: 0 + 0 = 0
1093 assert_eq!(a.cache_tokens(), 540_000);
1094 }
1095
1096 #[test]
1097 fn test_used_plus_cache_equals_total() {

Callers

nothing calls this directly

Calls 1

make_attestationFunction · 0.85

Tested by

no test coverage detected