()
| 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() { |
nothing calls this directly
no test coverage detected