()
| 1741 | } |
| 1742 | |
| 1743 | fn good_diff_meta() -> DiffMeta { |
| 1744 | DiffMeta { |
| 1745 | repo_url: "https://github.com/example/repo".into(), |
| 1746 | commit_sha: "abc1234".into(), |
| 1747 | file_path: Some("src/main.rs".into()), |
| 1748 | parent_commit: None, |
| 1749 | branch: None, |
| 1750 | pr_number: None, |
| 1751 | language: Some("rust".into()), |
| 1752 | description: None, |
| 1753 | truncated: false, |
| 1754 | alt_text: None, |
| 1755 | } |
| 1756 | } |
| 1757 | |
| 1758 | #[test] |
| 1759 | fn diff_message_happy_path() { |
no outgoing calls