componentAdded adds a new component to the test schema data and to the parser data
(component schema.Component)
| 25 | |
| 26 | // componentAdded adds a new component to the test schema data and to the parser data |
| 27 | func (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 |
| 36 | func (devfile *TestDevfile) componentUpdated(component schema.Component) { |
no test coverage detected