MCPcopy Index your code
hub / github.com/devfile/api / commandAdded

Method commandAdded

test/v200/utils/common/command_test_utils.go:29–35  ·  view source on GitHub ↗

commandAdded adds a new command to the test schema data and notifies the follower

(command schema.Command)

Source from the content-addressed store, hash-verified

27
28// commandAdded adds a new command to the test schema data and notifies the follower
29func (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
38func (testDevFile *TestDevfile) commandUpdated(command schema.Command) {

Callers 3

createExecCommandMethod · 0.95
createApplyCommandMethod · 0.95

Calls 2

LogInfoMessageFunction · 0.85
AddCommandMethod · 0.65

Tested by

no test coverage detected