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

Method starterProjectAdded

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

starterProjectAdded adds a new starter project to the test schema data and notifies the follower

(starterProject schema.StarterProject)

Source from the content-addressed store, hash-verified

41
42// starterProjectAdded adds a new starter project to the test schema data and notifies the follower
43func (testDevfile *TestDevfile) starterProjectAdded(starterProject schema.StarterProject) {
44 LogInfoMessage(fmt.Sprintf("starter project added Name: %s", starterProject.Name))
45 testDevfile.SchemaDevFile.StarterProjects = append(testDevfile.SchemaDevFile.StarterProjects, starterProject)
46 if testDevfile.Follower != nil {
47 testDevfile.Follower.AddStarterProject(starterProject)
48 }
49}
50
51// starterProjectUpdated notifies the follower of the starter project which has been updated
52func (testDevfile *TestDevfile) starterProjectUpdated(starterProject schema.StarterProject) {

Callers 1

createStarterProjectMethod · 0.95

Calls 2

LogInfoMessageFunction · 0.85
AddStarterProjectMethod · 0.65

Tested by

no test coverage detected