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