Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/.nvm/versions/node/v18.17.1/lib/node_modules/pm2/node_modules/js-git/test/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Ultra simple test runner with TAP output.
var inspect = require('util').inspect;
var defer = require('../lib/defer.js');
var log = console.log;
console.log = function () {
var args = [].slice.call(arguments).map(function (arg) {
return inspect(arg, {colors:true});
});
log(args.join(" ").split("\n").map(function (line) {
return "# " + line;
}).join("\n"));
};
module.exports = function (tests) {
var timeout;
var test;
var index = 0;
log("1.." + (tests.length));
next();
function next(err) {
if (timeout) clearTimeout(timeout);
if (index) {
if (err) {
log(err.stack.split("\n").map(function (line) {
return "# " + line;
}).join("\n"));
log("not ok " + index + " - " + test.name);
}
else {
log("ok " + index + " - " + test.name);
}
}
test = tests[index++];
if (!test) return;
timeout = setTimeout(onTimeout, 1000);
try {
if (test.length) test(next);
else test();
}
catch (err) { return next(err); }
if (!test.length) defer(next);
}
function onTimeout() {
next(new Error("Test timeout"));
}
}; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0031 ]-- |