AddStarterProject adds a starter project of the specified type, with random attributes, to the devfile schema
(projectType schema.ProjectSourceType)
| 97 | |
| 98 | // AddStarterProject adds a starter project of the specified type, with random attributes, to the devfile schema |
| 99 | func (testDevfile *TestDevfile) AddStarterProject(projectType schema.ProjectSourceType) string { |
| 100 | starterProject := testDevfile.createStarterProject(projectType) |
| 101 | testDevfile.SetStarterProjectValues(&starterProject) |
| 102 | return starterProject.Name |
| 103 | } |
| 104 | |
| 105 | // createProject creates a project of a specified type with only required attributes set |
| 106 | func (testDevfile *TestDevfile) createProject(projectType schema.ProjectSourceType) schema.Project { |
no test coverage detected