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

Method AddStarterProject

test/v200/utils/common/project_test_utils.go:99–103  ·  view source on GitHub ↗

AddStarterProject adds a starter project of the specified type, with random attributes, to the devfile schema

(projectType schema.ProjectSourceType)

Source from the content-addressed store, hash-verified

97
98// AddStarterProject adds a starter project of the specified type, with random attributes, to the devfile schema
99func (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
106func (testDevfile *TestDevfile) createProject(projectType schema.ProjectSourceType) schema.Project {

Callers 1

RunTestMethod · 0.95

Calls 2

createStarterProjectMethod · 0.95

Tested by

no test coverage detected