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

Method componentAdded

test/v200/utils/common/component_test_utils.go:27–33  ·  view source on GitHub ↗

componentAdded adds a new component to the test schema data and to the parser data

(component schema.Component)

Source from the content-addressed store, hash-verified

25
26// componentAdded adds a new component to the test schema data and to the parser data
27func (devfile *TestDevfile) componentAdded(component schema.Component) {
28 LogInfoMessage(fmt.Sprintf("component added Name: %s", component.Name))
29 devfile.SchemaDevFile.Components = append(devfile.SchemaDevFile.Components, component)
30 if devfile.Follower != nil {
31 devfile.Follower.AddComponent(component)
32 }
33}
34
35// componetUpdated updates a component in the parser data
36func (devfile *TestDevfile) componentUpdated(component schema.Component) {

Callers 1

AddComponentMethod · 0.95

Calls 2

LogInfoMessageFunction · 0.85
AddComponentMethod · 0.65

Tested by

no test coverage detected