(url, branch string)
| 286 | } |
| 287 | |
| 288 | func newSourceRepo(url, branch string) *platformv1alpha1.SourceRepository { |
| 289 | return &platformv1alpha1.SourceRepository{ |
| 290 | ObjectMeta: metav1.ObjectMeta{Name: "test-repo", Namespace: "default"}, |
| 291 | Spec: platformv1alpha1.SourceRepositorySpec{ |
| 292 | URL: url, |
| 293 | Branch: branch, |
| 294 | }, |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | func TestGetRecentCommits(t *testing.T) { |
| 299 | origin := newLocalGitRepo(t) |
no outgoing calls
no test coverage detected