# Code coverage report for test-lib/body.js

## Statements: 87.27% (48 / 55) Branches: 47.37% (9 / 19) Functions: 83.33% (5 / 6) Lines: 100% (8 / 8) Ignored: none

All files » test-lib/ » body.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    101
    1
    1
    1
    1
    1

    1
    4
     console.log('here')
    var __cov_7EC1Tj3NrcjKXZ3aiMGMNA = (Function('return this'))();
    Eif (!__cov_7EC1Tj3NrcjKXZ3aiMGMNA.__coverage__) { __cov_7EC1Tj3NrcjKXZ3aiMGMNA.__coverage__ = {}; }
    __cov_7EC1Tj3NrcjKXZ3aiMGMNA = __cov_7EC1Tj3NrcjKXZ3aiMGMNA.__coverage__;
    Eif (!(__cov_7EC1Tj3NrcjKXZ3aiMGMNA['/Users/matt/Code/Livescript/Livewire/lib/body.js'])) {
       __cov_7EC1Tj3NrcjKXZ3aiMGMNA['/Users/matt/Code/Livescript/Livewire/lib/body.js'] = {"path":"/Users/matt/Code/Livescript/Livewire/lib/body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":1,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0},"b":{"1":[0,0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":11}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":40},"end":{"line":8,"column":61}}},"3":{"name":"(anonymous_3)","line":18,"loc":{"start":{"line":18,"column":40},"end":{"line":18,"column":52}}},"4":{"name":"curry$","line":23,"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":27}}},"5":{"name":"(anonymous_5)","line":25,"loc":{"start":{"line":25,"column":13},"end":{"line":25,"column":28}}},"6":{"name":"(anonymous_6)","line":26,"loc":{"start":{"line":26,"column":28},"end":{"line":26,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":36,"column":14}},"2":{"start":{"line":2,"column":2},"end":{"line":2,"column":135}},"3":{"start":{"line":3,"column":2},"end":{"line":3,"column":35}},"4":{"start":{"line":4,"column":2},"end":{"line":4,"column":39}},"5":{"start":{"line":5,"column":2},"end":{"line":5,"column":78}},"6":{"start":{"line":6,"column":2},"end":{"line":6,"column":40}},"7":{"start":{"line":7,"column":2},"end":{"line":7,"column":35}},"8":{"start":{"line":8,"column":2},"end":{"line":22,"column":5}},"9":{"start":{"line":9,"column":4},"end":{"line":9,"column":12}},"10":{"start":{"line":10,"column":4},"end":{"line":21,"column":5}},"11":{"start":{"line":11,"column":6},"end":{"line":15,"column":21}},"12":{"start":{"line":17,"column":6},"end":{"line":17,"column":15}},"13":{"start":{"line":18,"column":6},"end":{"line":20,"column":11}},"14":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"15":{"start":{"line":23,"column":2},"end":{"line":35,"column":3}},"16":{"start":{"line":24,"column":4},"end":{"line":33,"column":6}},"17":{"start":{"line":26,"column":6},"end":{"line":32,"column":12}},"18":{"start":{"line":27,"column":8},"end":{"line":27,"column":47}},"19":{"start":{"line":28,"column":8},"end":{"line":28,"column":49}},"20":{"start":{"line":29,"column":8},"end":{"line":31,"column":66}},"21":{"start":{"line":34,"column":4},"end":{"line":34,"column":20}}},"branchMap":{"1":{"line":2,"type":"binary-expr","locations":[{"start":{"line":2,"column":86},"end":{"line":2,"column":115}},{"start":{"line":2,"column":119},"end":{"line":2,"column":126}},{"start":{"line":2,"column":130},"end":{"line":2,"column":134}}]},"2":{"line":26,"type":"cond-expr","locations":[{"start":{"line":26,"column":28},"end":{"line":32,"column":7}},{"start":{"line":32,"column":10},"end":{"line":32,"column":11}}]},"3":{"line":27,"type":"cond-expr","locations":[{"start":{"line":27,"column":28},"end":{"line":27,"column":41}},{"start":{"line":27,"column":44},"end":{"line":27,"column":46}}]},"4":{"line":28,"type":"cond-expr","locations":[{"start":{"line":28,"column":26},"end":{"line":28,"column":41}},{"start":{"line":28,"column":44},"end":{"line":28,"column":48}}]},"5":{"line":28,"type":"binary-expr","locations":[{"start":{"line":28,"column":26},"end":{"line":28,"column":33}},{"start":{"line":28,"column":37},"end":{"line":28,"column":41}}]},"6":{"line":29,"type":"cond-expr","locations":[{"start":{"line":31,"column":10},"end":{"line":31,"column":38}},{"start":{"line":31,"column":41},"end":{"line":31,"column":65}}]},"7":{"line":29,"type":"binary-expr","locations":[{"start":{"line":29,"column":15},"end":{"line":30,"column":20}},{"start":{"line":30,"column":24},"end":{"line":30,"column":40}}]}}};
    }
    __cov_7EC1Tj3NrcjKXZ3aiMGMNA = __cov_7EC1Tj3NrcjKXZ3aiMGMNA['/Users/matt/Code/Livescript/Livewire/lib/body.js'];
    __cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['1']++;(function(){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['1']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['2']++;var async,getBody,ref$,EitherT,Left,Promise,EitherPromise,bodyParams,out$=(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['1'][0]++,typeof exports!='undefined')&&(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['1'][1]++,exports)||(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['1'][2]++,this);__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['3']++;async=require('fantasy-async');__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['4']++;getBody=async(require('raw-body'));__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['5']++;ref$=require('fantasy-eithers'),EitherT=ref$.EitherT,Left=ref$.Left;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['6']++;Promise=require('fantasy-promises');__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['7']++;EitherPromise=EitherT(Promise);__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['8']++;out$.bodyParams=bodyParams=curry$(function(parser,req){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['2']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['9']++;var err;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['10']++;try{__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['11']++;return getBody(req,{length:req.headers['content-length'],encoding:'utf8',limit:'1mb'}).map(parser);}catch(e$){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['12']++;err=e$;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['13']++;return EitherPromise(new Promise(function(it){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['3']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['14']++;return it(Left(err));}));}});function curry$(f,bound){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['4']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['16']++;var context,_curry=function(args){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['5']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['17']++;return f.length>1?(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['2'][0]++,function(){__cov_7EC1Tj3NrcjKXZ3aiMGMNA.f['6']++;__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['18']++;var params=args?(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['3'][0]++,args.concat()):(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['3'][1]++,[]);__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['19']++;context=bound?(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['4'][0]++,(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['5'][0]++,context)||(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['5'][1]++,this)):(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['4'][1]++,this);__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['20']++;return(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['7'][0]++,params.push.apply(params,arguments)<f.length)&&(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['7'][1]++,arguments.length)?(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['6'][0]++,_curry.call(context,params)):(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['6'][1]++,f.apply(context,params));}):(__cov_7EC1Tj3NrcjKXZ3aiMGMNA.b['2'][1]++,f);};__cov_7EC1Tj3NrcjKXZ3aiMGMNA.s['21']++;return _curry();}}.call(this));