(testName: string)
| 33 | const TEST_FILTERS: TestFilter[] = []; |
| 34 | |
| 35 | const customInclude = (testName: string) => { |
| 36 | const toExclude = [ |
| 37 | 'isBrowser: false', |
| 38 | 'dilation gradient', |
| 39 | 'throws when index is out of bound', |
| 40 | // otsu tests for threshold op is failing on windows |
| 41 | 'method otsu', |
| 42 | 'draw on canvas context', |
| 43 | // https://github.com/tensorflow/tfjs/issues/7618 |
| 44 | 'numbers exceed float32 precision', |
| 45 | // float32 inputs with nonzero fractional part should not be rounded |
| 46 | 'floorDiv float32', |
| 47 | ]; |
| 48 | for (const subStr of toExclude) { |
| 49 | if (testName.includes(subStr)) { |
| 50 | return false; |
| 51 | } |
| 52 | } |
| 53 | // TODO(msoulanille): Prefer TEST_FILTERS over customInclude. |
| 54 | return true; |
| 55 | }; |
| 56 | setupTestFilters(TEST_FILTERS, customInclude); |
| 57 | |
| 58 | // Allow flags to override test envs |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…