(name string, checkoutRemote *v1alpha2.CheckoutFrom, remotes map[string]string, projectAttribute attributes.Attributes)
| 42 | } |
| 43 | |
| 44 | func generateDummyGitProject(name string, checkoutRemote *v1alpha2.CheckoutFrom, remotes map[string]string, projectAttribute attributes.Attributes) v1alpha2.Project { |
| 45 | return v1alpha2.Project{ |
| 46 | Attributes: projectAttribute, |
| 47 | Name: name, |
| 48 | ProjectSource: v1alpha2.ProjectSource{ |
| 49 | Git: &v1alpha2.GitProjectSource{ |
| 50 | GitLikeProjectSource: v1alpha2.GitLikeProjectSource{ |
| 51 | Remotes: remotes, |
| 52 | CheckoutFrom: checkoutRemote, |
| 53 | }, |
| 54 | }, |
| 55 | }, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func TestValidateStarterProjects(t *testing.T) { |
| 60 |
no outgoing calls
no test coverage detected