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

Function test_token_usage_new

atomic-core/src/change/provenance/tests.rs:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103#[test]
104fn test_token_usage_new() {
105 let usage = TokenUsage::new(1000, 500);
106 assert_eq!(usage.input_tokens, 1000);
107 assert_eq!(usage.output_tokens, 500);
108 assert_eq!(usage.total_tokens, 1500);
109 assert!(!usage.is_empty());
110 assert!(!usage.used_cache());
111}
112
113#[test]
114fn test_token_usage_with_cache() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected