(caps pluginapi.Capabilities)
| 46 | } |
| 47 | |
| 48 | func normalizedExecutorModelScope(caps pluginapi.Capabilities) pluginapi.ExecutorModelScope { |
| 49 | if caps.Executor == nil { |
| 50 | return pluginapi.ExecutorModelScopeBoth |
| 51 | } |
| 52 | switch caps.ExecutorModelScope { |
| 53 | case pluginapi.ExecutorModelScopeStatic, pluginapi.ExecutorModelScopeOAuth, pluginapi.ExecutorModelScopeBoth: |
| 54 | return caps.ExecutorModelScope |
| 55 | default: |
| 56 | return pluginapi.ExecutorModelScopeBoth |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func executorScopeAllowsStaticModels(caps pluginapi.Capabilities) bool { |
| 61 | if caps.Executor == nil { |
no outgoing calls
no test coverage detected