* Test the script against a bloom filter. * @param {Bloom} filter * @returns {Boolean}
(filter)
| 2442 | */ |
| 2443 | |
| 2444 | test(filter) { |
| 2445 | for (const op of this.code) { |
| 2446 | if (op.value === -1) |
| 2447 | break; |
| 2448 | |
| 2449 | if (!op.data || op.data.length === 0) |
| 2450 | continue; |
| 2451 | |
| 2452 | if (filter.test(op.data)) |
| 2453 | return true; |
| 2454 | } |
| 2455 | |
| 2456 | return false; |
| 2457 | } |
| 2458 | |
| 2459 | /** |
| 2460 | * Test the script to see if it contains only push ops. |
no outgoing calls
no test coverage detected