Skip to content

Commit

Permalink
New coverage stats
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Mar 26, 2018
1 parent 315e490 commit 09af2b2
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 94 deletions.
160 changes: 83 additions & 77 deletions docs-src/_data/coverage.json
@@ -1,14 +1,14 @@
{
"total": {
"lines": { "total": 1354, "covered": 1177, "skipped": 0, "pct": 86.93 },
"lines": { "total": 1513, "covered": 1325, "skipped": 0, "pct": 87.57 },
"statements": {
"total": 1356,
"covered": 1179,
"total": 1515,
"covered": 1327,
"skipped": 0,
"pct": 86.95
"pct": 87.59
},
"functions": { "total": 287, "covered": 243, "skipped": 0, "pct": 84.67 },
"branches": { "total": 417, "covered": 341, "skipped": 0, "pct": 81.77 }
"functions": { "total": 325, "covered": 272, "skipped": 0, "pct": 83.69 },
"branches": { "total": 489, "covered": 401, "skipped": 0, "pct": 82 }
},
"/Users/zachleat/Code/eleventy/config.js": {
"lines": { "total": 6, "covered": 6, "skipped": 0, "pct": 100 },
Expand All @@ -23,16 +23,22 @@
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Eleventy.js": {
"lines": { "total": 140, "covered": 76, "skipped": 0, "pct": 54.29 },
"functions": { "total": 19, "covered": 7, "skipped": 0, "pct": 36.84 },
"statements": { "total": 140, "covered": 76, "skipped": 0, "pct": 54.29 },
"lines": { "total": 146, "covered": 81, "skipped": 0, "pct": 55.48 },
"functions": { "total": 20, "covered": 7, "skipped": 0, "pct": 35 },
"statements": { "total": 146, "covered": 81, "skipped": 0, "pct": 55.48 },
"branches": { "total": 32, "covered": 10, "skipped": 0, "pct": 31.25 }
},
"/Users/zachleat/Code/eleventy/src/EleventyCommandCheck.js": {
"lines": { "total": 27, "covered": 27, "skipped": 0, "pct": 100 },
"functions": { "total": 5, "covered": 5, "skipped": 0, "pct": 100 },
"statements": { "total": 27, "covered": 27, "skipped": 0, "pct": 100 },
"branches": { "total": 8, "covered": 7, "skipped": 0, "pct": 87.5 }
},
"/Users/zachleat/Code/eleventy/src/EleventyConfig.js": {
"lines": { "total": 56, "covered": 44, "skipped": 0, "pct": 78.57 },
"functions": { "total": 18, "covered": 13, "skipped": 0, "pct": 72.22 },
"statements": { "total": 57, "covered": 45, "skipped": 0, "pct": 78.95 },
"branches": { "total": 20, "covered": 13, "skipped": 0, "pct": 65 }
"lines": { "total": 65, "covered": 51, "skipped": 0, "pct": 78.46 },
"functions": { "total": 21, "covered": 15, "skipped": 0, "pct": 71.43 },
"statements": { "total": 66, "covered": 52, "skipped": 0, "pct": 78.79 },
"branches": { "total": 24, "covered": 15, "skipped": 0, "pct": 62.5 }
},
"/Users/zachleat/Code/eleventy/src/EleventyError.js": {
"lines": { "total": 12, "covered": 12, "skipped": 0, "pct": 100 },
Expand All @@ -41,10 +47,10 @@
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Template.js": {
"lines": { "total": 228, "covered": 206, "skipped": 0, "pct": 90.35 },
"functions": { "total": 39, "covered": 34, "skipped": 0, "pct": 87.18 },
"statements": { "total": 228, "covered": 206, "skipped": 0, "pct": 90.35 },
"branches": { "total": 89, "covered": 73, "skipped": 0, "pct": 82.02 }
"lines": { "total": 246, "covered": 222, "skipped": 0, "pct": 90.24 },
"functions": { "total": 42, "covered": 34, "skipped": 0, "pct": 80.95 },
"statements": { "total": 246, "covered": 222, "skipped": 0, "pct": 90.24 },
"branches": { "total": 95, "covered": 79, "skipped": 0, "pct": 83.16 }
},
"/Users/zachleat/Code/eleventy/src/TemplateCache.js": {
"lines": { "total": 9, "covered": 9, "skipped": 0, "pct": 100 },
Expand All @@ -65,15 +71,15 @@
"branches": { "total": 16, "covered": 15, "skipped": 0, "pct": 93.75 }
},
"/Users/zachleat/Code/eleventy/src/TemplateData.js": {
"lines": { "total": 95, "covered": 94, "skipped": 0, "pct": 98.95 },
"functions": { "total": 16, "covered": 16, "skipped": 0, "pct": 100 },
"statements": { "total": 95, "covered": 94, "skipped": 0, "pct": 98.95 },
"branches": { "total": 22, "covered": 18, "skipped": 0, "pct": 81.82 }
"lines": { "total": 122, "covered": 119, "skipped": 0, "pct": 97.54 },
"functions": { "total": 18, "covered": 18, "skipped": 0, "pct": 100 },
"statements": { "total": 122, "covered": 119, "skipped": 0, "pct": 97.54 },
"branches": { "total": 32, "covered": 25, "skipped": 0, "pct": 78.13 }
},
"/Users/zachleat/Code/eleventy/src/TemplateGlob.js": {
"lines": { "total": 16, "covered": 15, "skipped": 0, "pct": 93.75 },
"lines": { "total": 15, "covered": 14, "skipped": 0, "pct": 93.33 },
"functions": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"statements": { "total": 16, "covered": 15, "skipped": 0, "pct": 93.75 },
"statements": { "total": 15, "covered": 14, "skipped": 0, "pct": 93.33 },
"branches": { "total": 8, "covered": 7, "skipped": 0, "pct": 87.5 }
},
"/Users/zachleat/Code/eleventy/src/TemplateLayout.js": {
Expand All @@ -83,22 +89,22 @@
"branches": { "total": 16, "covered": 15, "skipped": 0, "pct": 93.75 }
},
"/Users/zachleat/Code/eleventy/src/TemplateMap.js": {
"lines": { "total": 67, "covered": 65, "skipped": 0, "pct": 97.01 },
"functions": { "total": 12, "covered": 12, "skipped": 0, "pct": 100 },
"statements": { "total": 67, "covered": 65, "skipped": 0, "pct": 97.01 },
"branches": { "total": 10, "covered": 8, "skipped": 0, "pct": 80 }
"lines": { "total": 70, "covered": 68, "skipped": 0, "pct": 97.14 },
"functions": { "total": 13, "covered": 13, "skipped": 0, "pct": 100 },
"statements": { "total": 70, "covered": 68, "skipped": 0, "pct": 97.14 },
"branches": { "total": 12, "covered": 10, "skipped": 0, "pct": 83.33 }
},
"/Users/zachleat/Code/eleventy/src/TemplatePassthrough.js": {
"lines": { "total": 8, "covered": 7, "skipped": 0, "pct": 87.5 },
"functions": { "total": 3, "covered": 2, "skipped": 0, "pct": 66.67 },
"statements": { "total": 8, "covered": 7, "skipped": 0, "pct": 87.5 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 11, "covered": 9, "skipped": 0, "pct": 81.82 },
"functions": { "total": 4, "covered": 3, "skipped": 0, "pct": 75 },
"statements": { "total": 11, "covered": 9, "skipped": 0, "pct": 81.82 },
"branches": { "total": 2, "covered": 0, "skipped": 0, "pct": 0 }
},
"/Users/zachleat/Code/eleventy/src/TemplatePath.js": {
"lines": { "total": 38, "covered": 38, "skipped": 0, "pct": 100 },
"functions": { "total": 11, "covered": 10, "skipped": 0, "pct": 90.91 },
"statements": { "total": 38, "covered": 38, "skipped": 0, "pct": 100 },
"branches": { "total": 17, "covered": 17, "skipped": 0, "pct": 100 }
"lines": { "total": 53, "covered": 53, "skipped": 0, "pct": 100 },
"functions": { "total": 12, "covered": 11, "skipped": 0, "pct": 91.67 },
"statements": { "total": 53, "covered": 53, "skipped": 0, "pct": 100 },
"branches": { "total": 31, "covered": 31, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/TemplatePermalink.js": {
"lines": { "total": 31, "covered": 31, "skipped": 0, "pct": 100 },
Expand All @@ -113,28 +119,28 @@
"branches": { "total": 34, "covered": 32, "skipped": 0, "pct": 94.12 }
},
"/Users/zachleat/Code/eleventy/src/TemplateWriter.js": {
"lines": { "total": 160, "covered": 108, "skipped": 0, "pct": 67.5 },
"lines": { "total": 155, "covered": 103, "skipped": 0, "pct": 66.45 },
"functions": { "total": 27, "covered": 15, "skipped": 0, "pct": 55.56 },
"statements": { "total": 160, "covered": 108, "skipped": 0, "pct": 67.5 },
"branches": { "total": 34, "covered": 21, "skipped": 0, "pct": 61.76 }
"statements": { "total": 155, "covered": 103, "skipped": 0, "pct": 66.45 },
"branches": { "total": 32, "covered": 20, "skipped": 0, "pct": 62.5 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Ejs.js": {
"lines": { "total": 6, "covered": 6, "skipped": 0, "pct": 100 },
"functions": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 },
"statements": { "total": 6, "covered": 6, "skipped": 0, "pct": 100 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 18, "covered": 16, "skipped": 0, "pct": 88.89 },
"functions": { "total": 7, "covered": 5, "skipped": 0, "pct": 71.43 },
"statements": { "total": 18, "covered": 16, "skipped": 0, "pct": 88.89 },
"branches": { "total": 4, "covered": 3, "skipped": 0, "pct": 75 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Haml.js": {
"lines": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"functions": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 },
"statements": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 10, "covered": 10, "skipped": 0, "pct": 100 },
"functions": { "total": 3, "covered": 3, "skipped": 0, "pct": 100 },
"statements": { "total": 10, "covered": 10, "skipped": 0, "pct": 100 },
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Handlebars.js": {
"lines": { "total": 15, "covered": 15, "skipped": 0, "pct": 100 },
"functions": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"statements": { "total": 15, "covered": 15, "skipped": 0, "pct": 100 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 18, "covered": 18, "skipped": 0, "pct": 100 },
"functions": { "total": 5, "covered": 5, "skipped": 0, "pct": 100 },
"statements": { "total": 18, "covered": 18, "skipped": 0, "pct": 100 },
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Html.js": {
"lines": { "total": 9, "covered": 9, "skipped": 0, "pct": 100 },
Expand All @@ -149,39 +155,39 @@
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Liquid.js": {
"lines": { "total": 23, "covered": 23, "skipped": 0, "pct": 100 },
"functions": { "total": 7, "covered": 7, "skipped": 0, "pct": 100 },
"statements": { "total": 23, "covered": 23, "skipped": 0, "pct": 100 },
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
"lines": { "total": 33, "covered": 33, "skipped": 0, "pct": 100 },
"functions": { "total": 10, "covered": 10, "skipped": 0, "pct": 100 },
"statements": { "total": 33, "covered": 33, "skipped": 0, "pct": 100 },
"branches": { "total": 6, "covered": 5, "skipped": 0, "pct": 83.33 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Markdown.js": {
"lines": { "total": 16, "covered": 16, "skipped": 0, "pct": 100 },
"functions": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"statements": { "total": 16, "covered": 16, "skipped": 0, "pct": 100 },
"branches": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 }
"lines": { "total": 28, "covered": 26, "skipped": 0, "pct": 92.86 },
"functions": { "total": 8, "covered": 7, "skipped": 0, "pct": 87.5 },
"statements": { "total": 28, "covered": 26, "skipped": 0, "pct": 92.86 },
"branches": { "total": 10, "covered": 8, "skipped": 0, "pct": 80 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Mustache.js": {
"lines": { "total": 8, "covered": 8, "skipped": 0, "pct": 100 },
"functions": { "total": 3, "covered": 3, "skipped": 0, "pct": 100 },
"statements": { "total": 8, "covered": 8, "skipped": 0, "pct": 100 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 12, "covered": 12, "skipped": 0, "pct": 100 },
"functions": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"statements": { "total": 12, "covered": 12, "skipped": 0, "pct": 100 },
"branches": { "total": 2, "covered": 2, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Nunjucks.js": {
"lines": { "total": 18, "covered": 17, "skipped": 0, "pct": 94.44 },
"functions": { "total": 6, "covered": 6, "skipped": 0, "pct": 100 },
"statements": { "total": 18, "covered": 17, "skipped": 0, "pct": 94.44 },
"branches": { "total": 2, "covered": 1, "skipped": 0, "pct": 50 }
"lines": { "total": 20, "covered": 19, "skipped": 0, "pct": 95 },
"functions": { "total": 7, "covered": 7, "skipped": 0, "pct": 100 },
"statements": { "total": 20, "covered": 19, "skipped": 0, "pct": 95 },
"branches": { "total": 4, "covered": 3, "skipped": 0, "pct": 75 }
},
"/Users/zachleat/Code/eleventy/src/Engines/Pug.js": {
"lines": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"functions": { "total": 1, "covered": 1, "skipped": 0, "pct": 100 },
"statements": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
"branches": { "total": 0, "covered": 0, "skipped": 0, "pct": 100 }
"lines": { "total": 16, "covered": 16, "skipped": 0, "pct": 100 },
"functions": { "total": 5, "covered": 5, "skipped": 0, "pct": 100 },
"statements": { "total": 16, "covered": 16, "skipped": 0, "pct": 100 },
"branches": { "total": 4, "covered": 3, "skipped": 0, "pct": 75 }
},
"/Users/zachleat/Code/eleventy/src/Engines/TemplateEngine.js": {
"lines": { "total": 31, "covered": 31, "skipped": 0, "pct": 100 },
"functions": { "total": 9, "covered": 9, "skipped": 0, "pct": 100 },
"statements": { "total": 31, "covered": 31, "skipped": 0, "pct": 100 },
"lines": { "total": 34, "covered": 34, "skipped": 0, "pct": 100 },
"functions": { "total": 11, "covered": 11, "skipped": 0, "pct": 100 },
"statements": { "total": 34, "covered": 34, "skipped": 0, "pct": 100 },
"branches": { "total": 6, "covered": 6, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Filters/Slug.js": {
Expand All @@ -197,10 +203,10 @@
"branches": { "total": 21, "covered": 21, "skipped": 0, "pct": 100 }
},
"/Users/zachleat/Code/eleventy/src/Plugins/Pagination.js": {
"lines": { "total": 76, "covered": 71, "skipped": 0, "pct": 93.42 },
"functions": { "total": 11, "covered": 11, "skipped": 0, "pct": 100 },
"statements": { "total": 76, "covered": 71, "skipped": 0, "pct": 93.42 },
"branches": { "total": 24, "covered": 21, "skipped": 0, "pct": 87.5 }
"lines": { "total": 69, "covered": 65, "skipped": 0, "pct": 94.2 },
"functions": { "total": 9, "covered": 8, "skipped": 0, "pct": 88.89 },
"statements": { "total": 69, "covered": 65, "skipped": 0, "pct": 94.2 },
"branches": { "total": 26, "covered": 23, "skipped": 0, "pct": 88.46 }
},
"/Users/zachleat/Code/eleventy/src/Util/Capitalize.js": {
"lines": { "total": 4, "covered": 4, "skipped": 0, "pct": 100 },
Expand Down
35 changes: 18 additions & 17 deletions docs/coverage.md
@@ -1,40 +1,41 @@
# Code Coverage for Eleventy v0.2.14
# Code Coverage for Eleventy v0.3.0

| Filename | % Lines | % Statements | % Functions | % Branches |
| ------------------------------- | ------- | ------------ | ----------- | ---------- |
| `total` | 86.93% | 86.95% | 84.67% | 81.77% |
| `total` | 87.57% | 87.59% | 83.69% | 82% |
| `config.js` | 100% | 100% | 100% | 100% |
| `src/Config.js` | 100% | 100% | 100% | 100% |
| `src/Eleventy.js` | 54.29% | 54.29% | 36.84% | 31.25% |
| `src/EleventyConfig.js` | 78.57% | 78.95% | 72.22% | 65% |
| `src/Eleventy.js` | 55.48% | 55.48% | 35% | 31.25% |
| `src/EleventyCommandCheck.js` | 100% | 100% | 100% | 87.5% |
| `src/EleventyConfig.js` | 78.46% | 78.79% | 71.43% | 62.5% |
| `src/EleventyError.js` | 100% | 100% | 100% | 100% |
| `src/Template.js` | 90.35% | 90.35% | 87.18% | 82.02% |
| `src/Template.js` | 90.24% | 90.24% | 80.95% | 83.16% |
| `src/TemplateCache.js` | 100% | 100% | 100% | 100% |
| `src/TemplateCollection.js` | 91.3% | 91.67% | 90% | 80% |
| `src/TemplateConfig.js` | 91.3% | 91.3% | 80% | 93.75% |
| `src/TemplateData.js` | 98.95% | 98.95% | 100% | 81.82% |
| `src/TemplateGlob.js` | 93.75% | 93.75% | 100% | 87.5% |
| `src/TemplateData.js` | 97.54% | 97.54% | 100% | 78.13% |
| `src/TemplateGlob.js` | 93.33% | 93.33% | 100% | 87.5% |
| `src/TemplateLayout.js` | 97.37% | 97.37% | 100% | 93.75% |
| `src/TemplateMap.js` | 97.01% | 97.01% | 100% | 80% |
| `src/TemplatePassthrough.js` | 87.5% | 87.5% | 66.67% | 100% |
| `src/TemplatePath.js` | 100% | 100% | 90.91% | 100% |
| `src/TemplateMap.js` | 97.14% | 97.14% | 100% | 83.33% |
| `src/TemplatePassthrough.js` | 81.82% | 81.82% | 75% | 0% |
| `src/TemplatePath.js` | 100% | 100% | 91.67% | 100% |
| `src/TemplatePermalink.js` | 100% | 100% | 100% | 100% |
| `src/TemplateRender.js` | 98.73% | 98.73% | 100% | 94.12% |
| `src/TemplateWriter.js` | 67.5% | 67.5% | 55.56% | 61.76% |
| `src/Engines/Ejs.js` | 100% | 100% | 100% | 100% |
| `src/TemplateWriter.js` | 66.45% | 66.45% | 55.56% | 62.5% |
| `src/Engines/Ejs.js` | 88.89% | 88.89% | 71.43% | 75% |
| `src/Engines/Haml.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Handlebars.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Html.js` | 100% | 100% | 100% | 100% |
| `src/Engines/JavaScript.js` | 93.33% | 93.33% | 100% | 100% |
| `src/Engines/Liquid.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Markdown.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Liquid.js` | 100% | 100% | 100% | 83.33% |
| `src/Engines/Markdown.js` | 92.86% | 92.86% | 87.5% | 80% |
| `src/Engines/Mustache.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Nunjucks.js` | 94.44% | 94.44% | 100% | 50% |
| `src/Engines/Pug.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Nunjucks.js` | 95% | 95% | 100% | 75% |
| `src/Engines/Pug.js` | 100% | 100% | 100% | 75% |
| `src/Engines/TemplateEngine.js` | 100% | 100% | 100% | 100% |
| `src/Filters/Slug.js` | 100% | 100% | 100% | 100% |
| `src/Filters/Url.js` | 100% | 100% | 100% | 100% |
| `src/Plugins/Pagination.js` | 93.42% | 93.42% | 100% | 87.5% |
| `src/Plugins/Pagination.js` | 94.2% | 94.2% | 88.89% | 88.46% |
| `src/Util/Capitalize.js` | 100% | 100% | 100% | 100% |
| `src/Util/Pluralize.js` | 100% | 100% | 100% | 100% |
| `src/Util/Sortable.js` | 84.78% | 84.78% | 72.73% | 94.44% |

0 comments on commit 09af2b2

Please sign in to comment.