commandAdded adds a new command to the test schema data and notifies the follower
(command schema.Command)
| 27 | |
| 28 | // commandAdded adds a new command to the test schema data and notifies the follower |
| 29 | func (testDevFile *TestDevfile) commandAdded(command schema.Command) { |
| 30 | LogInfoMessage(fmt.Sprintf("command added Id: %s", command.Id)) |
| 31 | testDevFile.SchemaDevFile.Commands = append(testDevFile.SchemaDevFile.Commands, command) |
| 32 | if testDevFile.Follower != nil { |
| 33 | testDevFile.Follower.AddCommand(command) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // commandUpdated notifies the follower of the command which has been updated |
| 38 | func (testDevFile *TestDevfile) commandUpdated(command schema.Command) { |
no test coverage detected