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

Function assertTrue

modules/script/jsUnit.js:92–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92function assertTrue() {
93 _validateArguments(1, arguments);
94 var booleanValue=nonCommentArg(1, 1, arguments);
95
96 if (typeof(booleanValue) != 'boolean')
97 error('Bad argument to assertTrue(boolean)');
98
99 _assert(commentArg(1, arguments), booleanValue === true, 'Call to assertTrue(boolean) with false');
100}
101
102function assertFalse() {
103 _validateArguments(1, arguments);

Callers

nothing calls this directly

Calls 5

_validateArgumentsFunction · 0.85
nonCommentArgFunction · 0.85
errorFunction · 0.85
_assertFunction · 0.85
commentArgFunction · 0.85

Tested by

no test coverage detected