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

Method createApplyCommand

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

createApplyCommand creates an apply command in a schema structure

()

Source from the content-addressed store, hash-verified

217
218// createApplyCommand creates an apply command in a schema structure
219func (testDevFile *TestDevfile) createApplyCommand() *schema.Command {
220
221 LogInfoMessage("Create a apply command :")
222 command := schema.Command{}
223 command.Id = GetRandomUniqueString(8, true)
224 LogInfoMessage(fmt.Sprintf("command Id: %s", command.Id))
225 command.Apply = &schema.ApplyCommand{}
226 testDevFile.commandAdded(command)
227 return &command
228}
229
230// SetApplyCommandValues randomly sets/updates apply command attributes to random values
231func (testDevFile *TestDevfile) SetApplyCommandValues(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