(call *ast.CallExpr)
| 90 | } |
| 91 | |
| 92 | func commandExecutionMethodCall(call *ast.CallExpr) (string, bool) { |
| 93 | sel, ok := call.Fun.(*ast.SelectorExpr) |
| 94 | if !ok { |
| 95 | return "", false |
| 96 | } |
| 97 | name := sel.Sel.Name |
| 98 | switch name { |
| 99 | case "Start", "Run", "Output", "CombinedOutput": |
| 100 | return name, true |
| 101 | default: |
| 102 | return "", false |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // forEachConstructionCallExpr invokes fn for every call expression that runs as |
| 107 | // part of executing body. |
no outgoing calls
no test coverage detected