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