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

Function test_credit_ai_assisted

atomic-core/src/change/credit.rs:806–821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

804
805 #[test]
806 fn test_credit_ai_assisted() {
807 let credit = Credit::ai_assisted(
808 "bob",
809 None::<String>,
810 AIVendor::Anthropic,
811 "claude-sonnet-4",
812 test_hash(),
813 test_timestamp(),
814 );
815
816 assert_eq!(credit.author_name, "bob");
817 assert_eq!(credit.credit_type, CreditType::AiAssisted);
818 assert_eq!(credit.ai_vendor, Some(AIVendor::Anthropic));
819 assert_eq!(credit.ai_model, Some("claude-sonnet-4".to_string()));
820 assert!(credit.involves_ai());
821 }
822
823 #[test]
824 fn test_credit_ai_generated() {

Callers

nothing calls this directly

Calls 2

test_timestampFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected