MCPcopy Index your code
hub / github.com/apache/echarts / getRunHash

Function getRunHash

test/runTest/store.js:80–98  ·  view source on GitHub ↗

* hash of each run is mainly for storing the results. * It depends on two versions and rendering mode.

(params)

Source from the content-addressed store, hash-verified

78 * It depends on two versions and rendering mode.
79 */
80function 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.

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…