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

Function test_provenance_display

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

Source from the content-addressed store, hash-verified

275
276#[test]
277fn test_provenance_display() {
278 let prov = Provenance::builder()
279 .vendor(AIVendor::Anthropic)
280 .model("claude")
281 .tool(AITool::Api)
282 .tokens(1000, 500)
283 .cost_usd(0.02)
284 .build();
285
286 let display = format!("{}", prov);
287 assert!(display.contains("1500 tokens"));
288 assert!(display.contains("$0.02"));
289}
290
291#[test]
292fn test_provenance_try_build_success() {

Callers

nothing calls this directly

Calls 6

vendorMethod · 0.80
buildMethod · 0.45
cost_usdMethod · 0.45
tokensMethod · 0.45
toolMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected