(req coreexecutor.Request, opts coreexecutor.Options)
| 1382 | } |
| 1383 | |
| 1384 | func (a *executorAdapter) RequestToFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format { |
| 1385 | if a == nil { |
| 1386 | return "" |
| 1387 | } |
| 1388 | inputRequested := executorInputFormat(req, opts) |
| 1389 | inputFormat, errInput := a.selectExecutorInputFormat(inputRequested) |
| 1390 | if errInput != nil { |
| 1391 | return "" |
| 1392 | } |
| 1393 | return inputFormat |
| 1394 | } |
| 1395 | |
| 1396 | func executorInputFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format { |
| 1397 | if opts.SourceFormat != "" { |
nothing calls this directly
no test coverage detected