Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/tap/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict' const path = require('path') const binpath = path.resolve(__dirname, '../bin') const util = require('util') const diags = require('./diags.js') class TestPoint { constructor (ok, message, extra) { if (typeof ok !== 'boolean') throw new TypeError('ok must be boolean') if (typeof message !== 'string') throw new TypeError('message must be a string') extra = extra || {} this.ok = ok ? 'ok ' : 'not ok ' this.message = tpMessage(message.trim(), extra) } } const tpMessage = (message, extra) => { if (message) message = ' - ' + message // replace \r\n with one space, \t with 2, separately message = message.replace(/[\n\r]/g, ' ').replace(/\t/g, ' ') if (extra.skip) { message += ' # SKIP' if (typeof extra.skip === 'string') message += ' ' + extra.skip } else if (extra.todo) { message += ' # TODO' if (typeof extra.todo === 'string') message += ' ' + extra.todo } else if (extra.time) message += ' # time=' + extra.time + 'ms' const diagYaml = extra.diagnostic ? diags(extra) : '' message += diagYaml if (extra.tapChildBuffer || extra.tapChildBuffer === '') { if (!diagYaml) message += ' ' message += '{\n' + extra.tapChildBuffer.trimRight() + '\n}\n' } message += '\n' return message } module.exports = TestPoint |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0029 ]-- |