MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_llm_cost_record_without_cost

Function test_llm_cost_record_without_cost

core/src/telemetry.rs:778–790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

776
777 #[test]
778 fn test_llm_cost_record_without_cost() {
779 let record = LlmCostRecord {
780 model: "unknown-model".to_string(),
781 provider: "unknown".to_string(),
782 prompt_tokens: 100,
783 completion_tokens: 50,
784 total_tokens: 150,
785 cost_usd: None,
786 timestamp: chrono::Utc::now(),
787 session_id: None,
788 };
789 assert!(record.cost_usd.is_none());
790 }
791
792 #[test]
793 fn test_llm_cost_record_with_session() {

Callers

nothing calls this directly

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected