MCPcopy Create free account
hub / github.com/GNOME/gjs / _assert

Function _assert

modules/script/jsUnit.js:77–80  ·  view source on GitHub ↗
(comment, booleanValue, failureMessage)

Source from the content-addressed store, hash-verified

75}
76
77function _assert(comment, booleanValue, failureMessage) {
78 if (!booleanValue)
79 throw new JsUnitException(comment, failureMessage);
80}
81
82function assert() {
83 _validateArguments(1, arguments);

Callers 12

assertFunction · 0.85
assertTrueFunction · 0.85
assertFalseFunction · 0.85
assertEqualsFunction · 0.85
assertNotEqualsFunction · 0.85
assertNullFunction · 0.85
assertNotNullFunction · 0.85
assertUndefinedFunction · 0.85
assertNotUndefinedFunction · 0.85
assertNaNFunction · 0.85
assertNotNaNFunction · 0.85
assertRaisesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected