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

Function test_credit_human

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

Source from the content-addressed store, hash-verified

788
789 #[test]
790 fn test_credit_human() {
791 let credit = Credit::human(
792 "alice",
793 Some("alice@example.com"),
794 test_hash(),
795 test_timestamp(),
796 );
797
798 assert_eq!(credit.author_name, "alice");
799 assert_eq!(credit.author_email, Some("alice@example.com".to_string()));
800 assert_eq!(credit.credit_type, CreditType::Human);
801 assert!(credit.ai_vendor.is_none());
802 assert!(!credit.involves_ai());
803 }
804
805 #[test]
806 fn test_credit_ai_assisted() {

Callers

nothing calls this directly

Calls 2

test_timestampFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected