Code coverage report for monolog\lib\handler\TestHandler.js

Statements: 100% (22 / 22)      Branches: 50% (2 / 4)      Functions: 100% (5 / 5)      Lines: 100% (14 / 14)      Ignored: none     

All files » monolog\lib\handler\ » TestHandler.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    1   1   1   1 1   1 3 3     1 10 10 10       1       1          
// Generated by CoffeeScript 1.6.3
"use strict";
var Abstractprocessinghandler, TestHandler,
  __hasProp = {}.hasOwnProperty,
  __extends = function(child, parent) { for (var key in parent) { Eif (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
 
Abstractprocessinghandler = require('./AbstractProcessingHandler');
 
TestHandler = (function(_super) {
  __extends(TestHandler, _super);
 
  function TestHandler() {
    TestHandler.__super__.constructor.apply(this, arguments);
    this.records = [];
  }
 
  TestHandler.prototype.write = function(record, cb) {
    this.records.push(record.formatted);
    Eif (cb instanceof Function) {
      return cb(void 0, this.records, record, this);
    }
  };
 
  return TestHandler;
 
})(Abstractprocessinghandler);
 
module.exports = TestHandler;
 
/*
//@ sourceMappingURL=TestHandler.map
*/