* hash of each run is mainly for storing the results. * It depends on two versions and rendering mode.
(params)
| 78 | * It depends on two versions and rendering mode. |
| 79 | */ |
| 80 | function getRunHash(params) { |
| 81 | // Replace # with PR- in the hash to avoid URL issues |
| 82 | const expectedVersion = params.expectedSource === 'PR' |
| 83 | ? params.expectedVersion.replace('#', 'PR-') |
| 84 | : params.expectedVersion; |
| 85 | const actualVersion = params.actualSource === 'PR' |
| 86 | ? params.actualVersion.replace('#', 'PR-') |
| 87 | : params.actualVersion; |
| 88 | |
| 89 | return [ |
| 90 | params.expectedSource, |
| 91 | expectedVersion, |
| 92 | params.actualSource, |
| 93 | actualVersion, |
| 94 | params.renderer, |
| 95 | params.useCoarsePointer, |
| 96 | params.theme || 'none' |
| 97 | ].join(TEST_HASH_SPLITTER); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Parse versions and rendering mode from run hash. |
no outgoing calls
no test coverage detected
searching dependent graphs…