MCPcopy Create free account
hub / github.com/RubyLouvre/anu / inspect

Function inspect

test/babel.js:6148–6155  ·  view source on GitHub ↗
(something)

Source from the content-addressed store, hash-verified

6146 }
6147 }
6148 function inspect(something) {
6149 if (functionsHaveNames || !util.isFunction(something)) {
6150 return util.inspect(something);
6151 }
6152 var rawname = getName(something);
6153 var name = rawname ? ': ' + rawname : '';
6154 return '[Function' + name + ']';
6155 }
6156 function getMessage(self) {
6157 return truncate(inspect(self.actual), 128) + ' ' + self.operator + ' ' + truncate(inspect(self.expected), 128);
6158 }

Callers 2

getMessageFunction · 0.70
babel.jsFile · 0.70

Calls 4

isUndefinedFunction · 0.85
formatValueFunction · 0.85
getNameFunction · 0.70
isBooleanFunction · 0.70

Tested by

no test coverage detected