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

Function test_builder_models_vec

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

Source from the content-addressed store, hash-verified

938
939 #[test]
940 fn test_builder_models_vec() {
941 let models = vec![
942 ModelUsage::new("model-a").with_cost(0.10),
943 ModelUsage::new("model-b").with_cost(0.20),
944 ];
945 let a = Attestation::builder("sess", make_agent())
946 .models(models)
947 .cost_usd(0.30)
948 .build();
949
950 assert_eq!(a.models.len(), 2);
951 }
952
953 // -------------------------------------------------------------------------
954 // 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