MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_get_usage_empty

Function test_get_usage_empty

crates/opencode-session/src/session.rs:1397–1403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1395
1396 #[test]
1397 fn test_get_usage_empty() {
1398 let session = Session::new("project-1", "/path");
1399 let usage = session.get_usage();
1400 assert_eq!(usage.input_tokens, 0);
1401 assert_eq!(usage.output_tokens, 0);
1402 assert_eq!(usage.total_cost, 0.0);
1403 }
1404
1405 #[test]
1406 fn test_get_usage_aggregation() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
get_usageMethod · 0.80

Tested by

no test coverage detected