electron-lite (v2018.3.28)

Code coverage report for node-electron-lite/test.js

Ignored Statements Branches Functions Lines
none 100%
(24 / 24)
100%
(1 / 1)
100%
(9 / 9)
100%
(24 / 24)
All files » node-electron-lite/ » test.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82                      1   1         1   1 1   1   1           1       1 1     1       1 1 1     1       1     1       2     1       1 1       1       1   1        
/* istanbul instrument in package electron */
/*jslint
    bitwise: true,
    browser: true,
    maxerr: 4,
    maxlen: 100,
    node: true,
    nomen: true,
    regexp: true,
    stupid: true
*/
(function () {
    'use strict';
    var local;
 
 
 
    // run shared js-env code - init-before
    (function () {
        // init local
        local = require('utility2').requireReadme();
        local.global.local = local;
        // init test
        local.testRunInit(local);
    }());
    switch (local.modeJs) {
 
 
 
    // run node js-env code - function
    case 'node':
        local.testCase_buildApidoc_default = function (options, onError) {
        /*
         * this function will test buildApidoc's default handling-behavior-behavior
         */
            options = { moduleDict: { electron: require('electron') } };
            local.buildApidoc(options, onError);
        };
 
        local.testCase_buildApp_default = function (options, onError) {
        /*
         * this function will test buildApp's default handling-behavior-behavior
         */
            local.testCase_buildReadme_default(options, local.onErrorDefault);
            local.testCase_buildTest_default(options, local.onErrorThrow);
            onError(null, options);
        };
 
        local.testCase_buildLib_default = function (options, onError) {
        /*
         * this function will test buildLib's default handling-behavior-behavior
         */
            onError(null, options);
        };
 
        local.testCase_buildTest_default = function (options, onError) {
        /*
         * this function will test buildTest's default handling-behavior
         */
            onError(null, options);
        };
 
        local.testCase_exampleJs_exit = function (options, onError) {
        /*
         * this function will test example.js's exit handling-behavior
         */
            process.exit = function () {
                onError(null, options);
            };
        };
 
        local.testCase_webpage_default = function (options, onError) {
        /*
         * this function will test webpage's default handling-behavior
         */
            onError(null, options);
        };
        break;
    }
}());