Method
getBoolParameter
(name string, defaultValue bool, parameters []plugin.ExecutionParameter)
Source from the content-addressed store, hash-verified
| 361 | } |
| 362 | |
| 363 | func (c TestRunCommand) getBoolParameter(name string, defaultValue bool, parameters []plugin.ExecutionParameter) bool { |
| 364 | result := defaultValue |
| 365 | for _, p := range parameters { |
| 366 | if p.Name == name { |
| 367 | if data, ok := p.Value.(bool); ok { |
| 368 | result = data |
| 369 | break |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | return result |
| 374 | } |
| 375 | |
| 376 | func (c TestRunCommand) getStringArrayParameter(name string, defaultValue []string, parameters []plugin.ExecutionParameter) []string { |
| 377 | result := defaultValue |
Tested by
no test coverage detected