MCPcopy Create free account
hub / github.com/ampproject/amphtml / isInTestFolder

Function isInTestFolder

build-system/test-configs/forbidden-terms.js:1063–1066  ·  view source on GitHub ↗

* Check if root of path is test/ or file is in a folder named test. * @param {string} path * @return {boolean}

(path)

Source from the content-addressed store, hash-verified

1061 * @return {boolean}
1062 */
1063function isInTestFolder(path) {
1064 const dirs = path.split('/');
1065 return dirs.indexOf('test') >= 0;
1066}
1067
1068/**
1069 * Strip Comments

Callers 1

matchForbiddenTermsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected