Showing 2 of 6 files from the diff.
middleware/sync_by_install.js
changed.
middleware/web_not_found.js
changed.
Other files ignored by Codecov
package.json
has changed.
test/controllers/registry/package/list.test.js
has changed.
test/controllers/web/package/search.test.js
has changed.
test/controllers/web/package/show.test.js
has changed.
@@ -1,17 +1,5 @@
Loading
1 | - | /** |
|
2 | - | * Copyright(c) cnpm and other contributors. |
|
3 | - | * MIT Licensed |
|
4 | - | * |
|
5 | - | * Authors: |
|
6 | - | * dead_horse <dead_horse@qq.com> (http://deadhorse.me) |
|
7 | - | */ |
|
8 | - | ||
9 | 1 | 'use strict'; |
|
10 | 2 | ||
11 | - | /** |
|
12 | - | * Module dependencies. |
|
13 | - | */ |
|
14 | - | ||
15 | 3 | var config = require('../config'); |
|
16 | 4 | ||
17 | 5 | /** |
@@ -23,7 +23,11 @@
Loading
23 | 23 | } |
|
24 | 24 | ||
25 | 25 | // package not found |
|
26 | - | m = /\/package\/([\w\-\_\.]+)\/?$/.exec(this.url); |
|
26 | + | m = /^\/package\/([\w\-\_\.]+)\/?$/.exec(this.url); |
|
27 | + | if (!m) { |
|
28 | + | // scoped packages |
|
29 | + | m = /^\/package\/(@[\w\-\.]+\/[\w\-\.]+)$/.exec(this.path); |
|
30 | + | } |
|
27 | 31 | var name = null; |
|
28 | 32 | var title = '404: Page Not Found'; |
|
29 | 33 | if (m) { |
Files | Coverage |
---|---|
common | 67.39% |
controllers | 83.00% |
middleware | 95.13% |
models | 89.56% |
routes | 100.00% |
servers | 90.91% |
services | 88.40% |
sync | 90.91% |
config/index.js | 76.47% |
lib/common.js | 88.46% |
Project Totals (102 files) | 85.56% |
2236592790
2236592790
2236592790
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.