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

Method replaceSchemaProject

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

replaceSchemaProject replaces a Project in the saved devfile schema structure

(project schema.Project)

Source from the content-addressed store, hash-verified

59
60// replaceSchemaProject replaces a Project in the saved devfile schema structure
61func (testDevfile *TestDevfile) replaceSchemaProject(project schema.Project) {
62 for i := 0; i < len(testDevfile.SchemaDevFile.Projects); i++ {
63 if testDevfile.SchemaDevFile.Projects[i].Name == project.Name {
64 testDevfile.SchemaDevFile.Projects[i] = project
65 break
66 }
67 }
68}
69
70// replaceSchemaStarterProject replaces a Starter Project in the saved devfile schema structure
71func (testDevfile *TestDevfile) replaceSchemaStarterProject(starterProject schema.StarterProject) {

Callers 1

projectUpdatedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected