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

Function userAssert

src/utils/log.js:727–753  ·  view source on GitHub ↗
(
  shouldBeTrueish,
  opt_message,
  opt_1,
  opt_2,
  opt_3,
  opt_4,
  opt_5,
  opt_6,
  opt_7,
  opt_8,
  opt_9
)

Source from the content-addressed store, hash-verified

725 * @closurePrimitive {asserts.truthy}
726 */
727export function userAssert(
728 shouldBeTrueish,
729 opt_message,
730 opt_1,
731 opt_2,
732 opt_3,
733 opt_4,
734 opt_5,
735 opt_6,
736 opt_7,
737 opt_8,
738 opt_9
739) {
740 return user()./*Orig call*/ assert(
741 shouldBeTrueish,
742 opt_message,
743 opt_1,
744 opt_2,
745 opt_3,
746 opt_4,
747 opt_5,
748 opt_6,
749 opt_7,
750 opt_8,
751 opt_9
752 );
753}

Callers 15

constructorMethod · 0.90
runFunction · 0.90
validateDataFunction · 0.90
validateExactlyOneFunction · 0.90
updateDimensionsMethod · 0.90
draw3pInternalFunction · 0.90
validateParentOriginFunction · 0.90
validateAllowedTypesFunction · 0.90
mathmlFunction · 0.90
githubFunction · 0.90
test-log.jsFile · 0.90

Calls 2

assertMethod · 0.80
userFunction · 0.70

Tested by

no test coverage detected