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

Function generateDummyGitStarterProject

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

Source from the content-addressed store, hash-verified

27)
28
29func generateDummyGitStarterProject(name string, checkoutRemote *v1alpha2.CheckoutFrom, remotes map[string]string, projectAttribute attributes.Attributes) v1alpha2.StarterProject {
30 return v1alpha2.StarterProject{
31 Attributes: projectAttribute,
32 Name: name,
33 ProjectSource: v1alpha2.ProjectSource{
34 Git: &v1alpha2.GitProjectSource{
35 GitLikeProjectSource: v1alpha2.GitLikeProjectSource{
36 Remotes: remotes,
37 CheckoutFrom: checkoutRemote,
38 },
39 },
40 },
41 }
42}
43
44func generateDummyGitProject(name string, checkoutRemote *v1alpha2.CheckoutFrom, remotes map[string]string, projectAttribute attributes.Attributes) v1alpha2.Project {
45 return v1alpha2.Project{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected