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

Function test_token_usage_display

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

Source from the content-addressed store, hash-verified

120
121#[test]
122fn test_token_usage_display() {
123 let usage = TokenUsage::new(1000, 500);
124 let display = format!("{}", usage);
125 assert!(display.contains("1500"));
126 assert!(display.contains("1000"));
127 assert!(display.contains("500"));
128}
129
130#[test]
131fn test_token_usage_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected