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

Function commentArg

modules/script/jsUnit.js:58–63  ·  view source on GitHub ↗
(expectedNumberOfNonCommentArgs, args)

Source from the content-addressed store, hash-verified

56}
57
58function commentArg(expectedNumberOfNonCommentArgs, args) {
59 if (argumentsIncludeComments(expectedNumberOfNonCommentArgs, args))
60 return args[0];
61
62 return null;
63}
64
65function nonCommentArg(desiredNonCommentArgIndex, expectedNumberOfNonCommentArgs, args) {
66 return argumentsIncludeComments(expectedNumberOfNonCommentArgs, args) ?

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 1

argumentsIncludeCommentsFunction · 0.85

Tested by

no test coverage detected