MCPcopy
hub / github.com/ampproject/amphtml / getOutput

Function getOutput

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

* Computes the output for a test from its transform and input. * * @param {string} transform * @param {string} input * @return {Promise }

(transform, input)

Source from the content-addressed store, hash-verified

105 * @return {Promise<string>}
106 */
107async function getOutput(transform, input) {
108 return (await posthtml(/** @type {*} */ (transform)).process(input)).html;
109}
110
111/**
112 * Loads optional arguments residing in a options.json file, if any.

Callers 8

runCheckFunction · 0.70
checkRenovateConfigFunction · 0.70
runTestFunction · 0.70
jscodeshiftFunction · 0.50
affectsWorkingTreeFunction · 0.50
runExtensionTestsFunction · 0.50
formatFunction · 0.50
getStdoutThrowOnErrorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected