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

Method AddProject

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

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

(projectType schema.ProjectSourceType)

Source from the content-addressed store, hash-verified

90
91// AddProject adds a project of the specified type, with random attributes, to the devfile schema
92func (testDevfile *TestDevfile) AddProject(projectType schema.ProjectSourceType) string {
93 project := testDevfile.createProject(projectType)
94 testDevfile.SetProjectValues(&project)
95 return project.Name
96}
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 {

Callers 1

RunTestMethod · 0.95

Calls 2

createProjectMethod · 0.95
SetProjectValuesMethod · 0.95

Tested by

no test coverage detected