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

Function test_cost_display_normal

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

Source from the content-addressed store, hash-verified

1143
1144 #[test]
1145 fn test_cost_display_normal() {
1146 let a = Attestation::builder("s", make_agent())
1147 .cost_usd(1.23)
1148 .build();
1149 assert_eq!(a.cost_display(), "$1.23");
1150 }
1151
1152 #[test]
1153 fn test_api_duration_display() {

Callers

nothing calls this directly

Calls 3

make_agentFunction · 0.85
buildMethod · 0.45
cost_usdMethod · 0.45

Tested by

no test coverage detected