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

Function test_credit_ai_generated

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

Source from the content-addressed store, hash-verified

822
823 #[test]
824 fn test_credit_ai_generated() {
825 let credit = Credit::ai_generated(
826 "carol",
827 Some("carol@example.com"),
828 AIVendor::OpenAI,
829 "gpt-4o",
830 test_hash(),
831 test_timestamp(),
832 Some(0.95),
833 );
834
835 assert_eq!(credit.credit_type, CreditType::AiGenerated);
836 assert_eq!(credit.confidence, Some(95)); // 0.95 * 100
837 }
838
839 #[test]
840 fn test_credit_author_display() {

Callers

nothing calls this directly

Calls 2

test_timestampFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected