(returnValue)
| 29 | |
| 30 | // An op that always returns its fixed value from both onEmit and onUpdate |
| 31 | function createFixedOp (returnValue) |
| 32 | { |
| 33 | var val = (returnValue !== undefined) ? returnValue : 0; |
| 34 | return { |
| 35 | active: false, |
| 36 | steps: 0, |
| 37 | onEmit: function (particle, key) { return val; }, |
| 38 | onUpdate: function (particle, key, t, current) { return val; } |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | function createMockOps () |
| 43 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…