source: trip-planner-front/node_modules/istanbul-lib-report/index.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 986 bytes
Line 
1/*
2 Copyright 2012-2015, Yahoo Inc.
3 Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
4 */
5'use strict';
6
7/**
8 * @module Exports
9 */
10
11const Context = require('./lib/context');
12const watermarks = require('./lib/watermarks');
13const ReportBase = require('./lib/report-base');
14
15module.exports = {
16 /**
17 * returns a reporting context for the supplied options
18 * @param {Object} [opts=null] opts
19 * @returns {Context}
20 */
21 createContext(opts) {
22 return new Context(opts);
23 },
24
25 /**
26 * returns the default watermarks that would be used when not
27 * overridden
28 * @returns {Object} an object with `statements`, `functions`, `branches`,
29 * and `line` keys. Each value is a 2 element array that has the low and
30 * high watermark as percentages.
31 */
32 getDefaultWatermarks() {
33 return watermarks.getDefault();
34 },
35
36 /**
37 * Base class for all reports
38 */
39 ReportBase
40};
Note: See TracBrowser for help on using the repository browser.