(id, cmd, name string, payload []byte)
| 149 | } |
| 150 | |
| 151 | func newTestFn(id, cmd, name string, payload []byte) Function { |
| 152 | args := []string{id, cmd} |
| 153 | if name != "" { |
| 154 | args = append(args, name) |
| 155 | } |
| 156 | return NewFunction(functions.Function{ |
| 157 | UID: "test-uid", |
| 158 | Args: args, |
| 159 | Payload: payload, |
| 160 | }) |
| 161 | } |
| 162 | |
| 163 | func TestHandler_WaitForDecision_MatchingEnableClearsWait(t *testing.T) { |
| 164 | cb := &mockCallbacks{} |
no test coverage detected
searching dependent graphs…