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

Method createExecCommand

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

createExecCommand creates and returns an empty exec command in a schema structure

()

Source from the content-addressed store, hash-verified

101
102// createExecCommand creates and returns an empty exec command in a schema structure
103func (testDevFile *TestDevfile) createExecCommand() *schema.Command {
104
105 LogInfoMessage("Create an exec command :")
106 command := schema.Command{}
107 command.Id = GetRandomUniqueString(8, true)
108 LogInfoMessage(fmt.Sprintf("command Id: %s", command.Id))
109 command.Exec = &schema.ExecCommand{}
110 testDevFile.commandAdded(command)
111 return &command
112
113}
114
115// SetExecCommandValues randomly sets/updates exec command attributes to random values
116func (testDevFile *TestDevfile) SetExecCommandValues(command *schema.Command) {

Callers 1

AddCommandMethod · 0.95

Calls 3

commandAddedMethod · 0.95
LogInfoMessageFunction · 0.85
GetRandomUniqueStringFunction · 0.85

Tested by

no test coverage detected