# Code coverage report for Livewire/test-lib/route.js

## Statements: 45.16% (28 / 62) Branches: 22.73% (5 / 22) Functions: 33.33% (3 / 9) Lines: 100% (7 / 7) Ignored: none

All files » Livewire/test-lib/ » route.js

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

    1
    1

    var __cov_x_1taAdPKSFyUnRW$nmQ1w = (Function('return this'))();
    Iif (!__cov_x_1taAdPKSFyUnRW$nmQ1w.__coverage__) { __cov_x_1taAdPKSFyUnRW$nmQ1w.__coverage__ = {}; }
    __cov_x_1taAdPKSFyUnRW$nmQ1w = __cov_x_1taAdPKSFyUnRW$nmQ1w.__coverage__;
    Eif (!(__cov_x_1taAdPKSFyUnRW$nmQ1w['/Users/matt/Code/Livescript/Livewire/lib/route.js'])) {
       __cov_x_1taAdPKSFyUnRW$nmQ1w['/Users/matt/Code/Livescript/Livewire/lib/route.js'] = {"path":"/Users/matt/Code/Livescript/Livewire/lib/route.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":0,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0},"b":{"1":[0,0,0],"2":[0,0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":11}}},"2":{"name":"(anonymous_2)","line":4,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":34}}},"3":{"name":"(anonymous_3)","line":15,"loc":{"start":{"line":15,"column":7},"end":{"line":15,"column":19}}},"4":{"name":"(anonymous_4)","line":18,"loc":{"start":{"line":18,"column":23},"end":{"line":18,"column":45}}},"5":{"name":"(anonymous_5)","line":19,"loc":{"start":{"line":19,"column":11},"end":{"line":19,"column":21}}},"6":{"name":"(anonymous_6)","line":20,"loc":{"start":{"line":20,"column":13},"end":{"line":20,"column":25}}},"7":{"name":"curry$","line":25,"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":27}}},"8":{"name":"(anonymous_8)","line":27,"loc":{"start":{"line":27,"column":13},"end":{"line":27,"column":28}}},"9":{"name":"(anonymous_9)","line":28,"loc":{"start":{"line":28,"column":28},"end":{"line":28,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":38,"column":14}},"2":{"start":{"line":2,"column":2},"end":{"line":2,"column":100}},"3":{"start":{"line":3,"column":2},"end":{"line":3,"column":72}},"4":{"start":{"line":4,"column":2},"end":{"line":14,"column":5}},"5":{"start":{"line":5,"column":4},"end":{"line":5,"column":10}},"6":{"start":{"line":6,"column":4},"end":{"line":13,"column":5}},"7":{"start":{"line":8,"column":6},"end":{"line":8,"column":18}},"8":{"start":{"line":10,"column":6},"end":{"line":10,"column":15}},"9":{"start":{"line":12,"column":6},"end":{"line":12,"column":37}},"10":{"start":{"line":15,"column":2},"end":{"line":17,"column":4}},"11":{"start":{"line":16,"column":4},"end":{"line":16,"column":14}},"12":{"start":{"line":18,"column":2},"end":{"line":24,"column":4}},"13":{"start":{"line":19,"column":4},"end":{"line":23,"column":6}},"14":{"start":{"line":20,"column":6},"end":{"line":22,"column":44}},"15":{"start":{"line":21,"column":8},"end":{"line":21,"column":37}},"16":{"start":{"line":25,"column":2},"end":{"line":37,"column":3}},"17":{"start":{"line":26,"column":4},"end":{"line":35,"column":6}},"18":{"start":{"line":28,"column":6},"end":{"line":34,"column":12}},"19":{"start":{"line":29,"column":8},"end":{"line":29,"column":47}},"20":{"start":{"line":30,"column":8},"end":{"line":30,"column":49}},"21":{"start":{"line":31,"column":8},"end":{"line":33,"column":66}},"22":{"start":{"line":36,"column":4},"end":{"line":36,"column":20}}},"branchMap":{"1":{"line":2,"type":"binary-expr","locations":[{"start":{"line":2,"column":51},"end":{"line":2,"column":80}},{"start":{"line":2,"column":84},"end":{"line":2,"column":91}},{"start":{"line":2,"column":95},"end":{"line":2,"column":99}}]},"2":{"line":6,"type":"switch","locations":[{"start":{"line":7,"column":4},"end":{"line":8,"column":18}},{"start":{"line":9,"column":4},"end":{"line":10,"column":15}},{"start":{"line":11,"column":4},"end":{"line":12,"column":37}}]},"3":{"line":28,"type":"cond-expr","locations":[{"start":{"line":28,"column":28},"end":{"line":34,"column":7}},{"start":{"line":34,"column":10},"end":{"line":34,"column":11}}]},"4":{"line":29,"type":"cond-expr","locations":[{"start":{"line":29,"column":28},"end":{"line":29,"column":41}},{"start":{"line":29,"column":44},"end":{"line":29,"column":46}}]},"5":{"line":30,"type":"cond-expr","locations":[{"start":{"line":30,"column":26},"end":{"line":30,"column":41}},{"start":{"line":30,"column":44},"end":{"line":30,"column":48}}]},"6":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":26},"end":{"line":30,"column":33}},{"start":{"line":30,"column":37},"end":{"line":30,"column":41}}]},"7":{"line":31,"type":"cond-expr","locations":[{"start":{"line":33,"column":10},"end":{"line":33,"column":38}},{"start":{"line":33,"column":41},"end":{"line":33,"column":65}}]},"8":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":15},"end":{"line":32,"column":20}},{"start":{"line":32,"column":24},"end":{"line":32,"column":40}}]}}};
    }
    __cov_x_1taAdPKSFyUnRW$nmQ1w = __cov_x_1taAdPKSFyUnRW$nmQ1w['/Users/matt/Code/Livescript/Livewire/lib/route.js'];
    __cov_x_1taAdPKSFyUnRW$nmQ1w.s['1']++;(function(){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['1']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['2']++;var ref$,Some,None,compact,id,route,out$=(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['1'][0]++,typeof exports!='undefined')&&(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['1'][1]++,exports)||(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['1'][2]++,this);__cov_x_1taAdPKSFyUnRW$nmQ1w.s['3']++;ref$=require('fantasy-options'),Some=ref$.Some,None=ref$.None;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['4']++;compact=curry$(function(rs,a){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['2']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['5']++;var o;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['6']++;switch(false){case rs.length!==0:__cov_x_1taAdPKSFyUnRW$nmQ1w.b['2'][0]++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['7']++;return None;case!((o=rs[0](a))instanceof Some):__cov_x_1taAdPKSFyUnRW$nmQ1w.b['2'][1]++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['8']++;return o;default:__cov_x_1taAdPKSFyUnRW$nmQ1w.b['2'][2]++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['9']++;return compact(rs.slice(1),a);}});__cov_x_1taAdPKSFyUnRW$nmQ1w.s['10']++;id=function(it){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['3']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['11']++;return it;};__cov_x_1taAdPKSFyUnRW$nmQ1w.s['12']++;out$.route=route=function(fallback,rs){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['4']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['13']++;return function(){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['5']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['14']++;return function(it){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['6']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['15']++;return it.fold(id,fallback);}(compact(rs).apply(this,arguments));};};function curry$(f,bound){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['7']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['17']++;var context,_curry=function(args){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['8']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['18']++;return f.length>1?(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['3'][0]++,function(){__cov_x_1taAdPKSFyUnRW$nmQ1w.f['9']++;__cov_x_1taAdPKSFyUnRW$nmQ1w.s['19']++;var params=args?(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['4'][0]++,args.concat()):(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['4'][1]++,[]);__cov_x_1taAdPKSFyUnRW$nmQ1w.s['20']++;context=bound?(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['5'][0]++,(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['6'][0]++,context)||(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['6'][1]++,this)):(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['5'][1]++,this);__cov_x_1taAdPKSFyUnRW$nmQ1w.s['21']++;return(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['8'][0]++,params.push.apply(params,arguments)<f.length)&&(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['8'][1]++,arguments.length)?(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['7'][0]++,_curry.call(context,params)):(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['7'][1]++,f.apply(context,params));}):(__cov_x_1taAdPKSFyUnRW$nmQ1w.b['3'][1]++,f);};__cov_x_1taAdPKSFyUnRW$nmQ1w.s['22']++;return _curry();}}.call(this));