MCPcopy Index your code
hub / github.com/ampproject/amphtml / getTestName

Function getTestName

build-system/tasks/server-tests.js:36–40  ·  view source on GitHub ↗

* Computes the name of a test from its input file. * * @param {string} inputFile * @return {string}

(inputFile)

Source from the content-addressed store, hash-verified

34 * @return {string}
35 */
36function getTestName(inputFile) {
37 const transformName = path.basename(getTransformerDir(inputFile));
38 const testSuffix = getTestPath(inputFile);
39 return `${transformName} → ${testSuffix}`;
40}
41
42/**
43 * Computes the directory of the transformer used in the test.

Callers 1

runTestFunction · 0.85

Calls 2

getTransformerDirFunction · 0.85
getTestPathFunction · 0.85

Tested by

no test coverage detected