mozilla / nunjucks
Showing 1 of 4 files from the diff.
Other files ignored by Codecov
CHANGELOG.md has changed.
tests/filters.js has changed.

@@ -632,12 +632,16 @@
Loading
632 632
633 633
exports.float = float;
634 634
635 -
function int(val, def) {
636 -
  var res = parseInt(val, 10);
637 -
  return (isNaN(res)) ? def : res;
638 -
}
635 +
const intFilter = r.makeMacro(
636 +
  ['value', 'default', 'base'],
637 +
  [],
638 +
  function doInt(value, defaultValue, base = 10) {
639 +
    var res = parseInt(value, base);
640 +
    return (isNaN(res)) ? defaultValue : res;
641 +
  }
642 +
);
639 643
640 -
exports.int = int;
644 +
exports.int = intFilter;
641 645
642 646
// Aliases
643 647
exports.d = exports.default;
Files Coverage
nunjucks 89.69%
Project Totals (22 files) 89.69%
bgwbe2uap9lypda6
vla3j6jxa8k18vf4
npdjimuue7js0e7l
1vtmbs46yi55ttc7
t8id5753latvgpxg
a6sb25b8gfuu4q4t
p8rgdihx20mlrath
q7a0bk93e2plaxfx
l2qmykspghwcwhu8
1
comment:
2
  require_changes: yes
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading