(returnValue)
| 17 | } |
| 18 | |
| 19 | function createMockOp (returnValue) |
| 20 | { |
| 21 | var val = (returnValue !== undefined) ? returnValue : 0; |
| 22 | return { |
| 23 | active: false, |
| 24 | steps: 0, |
| 25 | onEmit: function (particle, key) { return val; }, |
| 26 | onUpdate: function (particle, key, t, current) { return current; } |
| 27 | }; |
| 28 | } |
| 29 | |
| 30 | // An op that always returns its fixed value from both onEmit and onUpdate |
| 31 | function createFixedOp (returnValue) |
no outgoing calls
no test coverage detected
searching dependent graphs…