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

Function test_builder_models_vec

atomic-core/src/change/attestation.rs:1461–1472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1459
1460 #[test]
1461 fn test_builder_models_vec() {
1462 let models = vec![
1463 ModelUsage::new("model-a").with_cost(0.10),
1464 ModelUsage::new("model-b").with_cost(0.20),
1465 ];
1466 let a = Attestation::builder("sess", make_agent())
1467 .models(models)
1468 .cost_usd(0.30)
1469 .build();
1470
1471 assert_eq!(a.models.len(), 2);
1472 }
1473
1474 // -------------------------------------------------------------------------
1475 // Serialization

Callers

nothing calls this directly

Calls 4

make_agentFunction · 0.85
modelsMethod · 0.80
buildMethod · 0.45
cost_usdMethod · 0.45

Tested by

no test coverage detected