(data *garlic.EventData)
| 113 | } |
| 114 | |
| 115 | func extractExitCode(data *garlic.EventData) uint32 { |
| 116 | switch (*data).(type) { |
| 117 | case garlic.Exit: |
| 118 | // Value of 128 -- https://tldp.org/LDP/abs/html/exitcodes.html |
| 119 | return (*data).(garlic.Exit).ExitCode + 128 |
| 120 | default: |
| 121 | logrus.Error("Garlic return wrong type of event.") |
| 122 | } |
| 123 | |
| 124 | return 255 |
| 125 | } |
no outgoing calls
no test coverage detected