MCPcopy Create free account
hub / github.com/devfile/api / generateDummyGitProject

Function generateDummyGitProject

pkg/validation/projects_test.go:44–57  ·  view source on GitHub ↗
(name string, checkoutRemote *v1alpha2.CheckoutFrom, remotes map[string]string, projectAttribute attributes.Attributes)

Source from the content-addressed store, hash-verified

42}
43
44func 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
59func TestValidateStarterProjects(t *testing.T) {
60

Callers 1

TestValidateProjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected