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

Function getTest

third_party/inputmask/inputmask.js:832–837  ·  view source on GitHub ↗
(pos, tests)

Source from the content-addressed store, hash-verified

830 return getMaskSet().validPositions[pos] || determineTestTemplate(pos, getTests(pos, ndxIntlzr ? ndxIntlzr.slice() : ndxIntlzr, tstPs));
831 }
832 function getTest(pos, tests) {
833 if (getMaskSet().validPositions[pos]) {
834 return getMaskSet().validPositions[pos];
835 }
836 return (tests || getTests(pos))[0];
837 }
838 function positionCanMatchDefinition(pos, def) {
839 var valid = false, tests = getTests(pos);
840 for (var tndx = 0; tndx < tests.length; tndx++) {

Callers 10

determineTestTemplateFunction · 0.85
alternateFunction · 0.85
trackbackPositionsFunction · 0.85
revalidateMaskFunction · 0.85
isMaskFunction · 0.85
seekNextFunction · 0.85
seekPreviousFunction · 0.85
getPlaceholderFunction · 0.85
maskScopeFunction · 0.85
isTemplateMatchFunction · 0.85

Calls 2

getMaskSetFunction · 0.85
getTestsFunction · 0.85

Tested by

no test coverage detected