grpc-lite v2016.12.3

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

Statements: 100% (19 / 19)      Branches: 100% (5 / 5)      Functions: 100% (3 / 3)      Lines: 100% (19 / 19)      Ignored: none     

All files » node-grpc-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                      1   1         1   1   1   1   1 1     1   1     1           1       1 1                 1   1   1             1 1        
/* istanbul instrument in package grpc-lite */
/*jslint
    bitwise: true,
    browser: true,
    maxerr: 8,
    maxlen: 96,
    node: true,
    nomen: true,
    regexp: true,
    stupid: true
*/
(function () {
    'use strict';
    var local;
 
 
 
    // run shared js-env code - pre-init
    (function () {
        // init Error.stackTraceLimit
        Error.stackTraceLimit = 20;
        // init local
        local = {};
        // init modeJs
        local.modeJs = 'node';
        // init global
        local.global = global;
        switch (local.modeJs) {
        // re-init local from example.js
        case 'node':
            local = global.local = (local.global.utility2_rollup || require('utility2'))
                .requireExampleJsFromReadme();
            break;
        }
    }());
    switch (local.modeJs) {
 
 
 
    // run node js-env code - function
    case 'node':
        local.testCase_build_doc = function (options, onError) {
        /*
         * this function will test build's doc handling-behavior
         */
            options = {};
            options.exampleFileList = [
                'README.md',
                'grpc/README.md',
                'grpc/src/node/index.js',
                'grpc/src/node/src/client.js',
                'grpc/src/node/src/server.js',
                'test.js',
                local.env.npm_package_main + '.js'
            ];
            local.buildDoc(options, onError);
        };
        break;
    }
    switch (local.modeJs) {
 
 
 
    // run node js-env code - post-init
    case 'node':
        // run test-server
        local.testRunServer(local);
        break;
    }
}());