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

Function getInput

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

* Extracts the input for a test from its input file. * * @param {string} inputFile * @return {Promise }

(inputFile)

Source from the content-addressed store, hash-verified

24 * @return {Promise<string>}
25 */
26async function getInput(inputFile) {
27 return fs.promises.readFile(inputFile, 'utf8');
28}
29
30/**
31 * Computes the name of a test from its input file.

Callers 1

runTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected