diff --git a/package-lock.json b/package-lock.json index 11cdc500..1c16a54b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "monocart-coverage-reports", - "version": "2.10.1", + "version": "2.10.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "monocart-coverage-reports", - "version": "2.10.1", + "version": "2.10.2", "license": "MIT", "workspaces": [ "test" diff --git a/test/mock/src/branch/branch.js b/test/mock/src/branch/branch.js index d821f1ba..6894ee15 100644 --- a/test/mock/src/branch/branch.js +++ b/test/mock/src/branch/branch.js @@ -5,6 +5,7 @@ const ConditionalExpression = require('./conditional.js'); const IfStatement = require('./if.js'); const LogicalExpression = require('./logical.js'); const SwitchStatement = require('./switch.js'); +const SwitchStatementNoBreak = require('./switch-no-break.js'); const uncoveredFunction = (a) => { const list = [1, 2, 3, 4, 5]; @@ -152,7 +153,7 @@ const branch = (a) => { IfStatement(); LogicalExpression(); SwitchStatement(); - + SwitchStatementNoBreak(); }; module.exports = { diff --git a/test/mock/src/branch/switch-no-break.js b/test/mock/src/branch/switch-no-break.js new file mode 100644 index 00000000..8cf1b3f7 --- /dev/null +++ b/test/mock/src/branch/switch-no-break.js @@ -0,0 +1,19 @@ +// all branches should be covered 3/3 +function SwitchStatementNoBreak(a) { + let result = 0; + switch (a) { + case 1: + result++; + case 2: + result++; + default: + result++; + } + return result; +} + +module.exports = () => { + SwitchStatementNoBreak(1); + SwitchStatementNoBreak(2); + SwitchStatementNoBreak(3); +}; diff --git a/test/snapshot/cli.snapshot.json b/test/snapshot/cli.snapshot.json index e51f01c9..e0397e2f 100644 --- a/test/snapshot/cli.snapshot.json +++ b/test/snapshot/cli.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "52.61 %", - "statements": "55.60 %", - "branches": "51.88 %", - "functions": "49.45 %", - "lines": "44.35 %" + "bytes": "53.59 %", + "statements": "56.61 %", + "branches": "52.04 %", + "functions": "50.54 %", + "lines": "45.58 %" }, "files": { "test/mock/node/lib/app.js": { @@ -65,11 +65,11 @@ "test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -98,6 +98,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/esbuild.snapshot.json b/test/snapshot/esbuild.snapshot.json index 9d82d91f..0e003c99 100644 --- a/test/snapshot/esbuild.snapshot.json +++ b/test/snapshot/esbuild.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "82.34 %", - "statements": "83.30 %", - "branches": "59.60 %", - "functions": "83.67 %", - "lines": "71.76 %" + "bytes": "82.76 %", + "statements": "83.73 %", + "branches": "59.68 %", + "functions": "84.16 %", + "lines": "72.48 %" }, "files": { "src/async.js": { @@ -29,11 +29,11 @@ "src/branch/branch.js": { "functions": "72.73 %", "branches": "65.85 %", - "statements": "85.71 %", - "lines": "73.87 %", - "bytes": "80.88 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "86.08 %", + "lines": "74.34 %", + "bytes": "81.46 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/istanbul.snapshot.json b/test/snapshot/istanbul.snapshot.json index 72adb20b..ae635163 100644 --- a/test/snapshot/istanbul.snapshot.json +++ b/test/snapshot/istanbul.snapshot.json @@ -1,10 +1,10 @@ { "type": "istanbul", "summary": { - "lines": "82.12 %", - "statements": "82.05 %", - "functions": "76.82 %", - "branches": "58.33 %" + "lines": "82.54 %", + "statements": "82.46 %", + "functions": "77.38 %", + "branches": "58.80 %" }, "files": { "async.js": { @@ -24,11 +24,11 @@ "extras": "" }, "branch/branch.js": { - "lines": "86.11 %", + "lines": "86.48 %", "functions": "70.00 %", - "statements": "86.48 %", + "statements": "86.84 %", "branches": "65.85 %", - "uncoveredLines": "10-17,58,81,119-120,137", + "uncoveredLines": "11-18,59,82,120-121,138", "extras": "" }, "branch/conditional.js": { @@ -55,6 +55,14 @@ "uncoveredLines": "", "extras": "" }, + "branch/switch-no-break.js": { + "lines": "100.00 %", + "functions": "100.00 %", + "statements": "100.00 %", + "branches": "100.00 %", + "uncoveredLines": "", + "extras": "" + }, "branch/switch.js": { "lines": "70.00 %", "functions": "100.00 %", diff --git a/test/snapshot/merge.snapshot.json b/test/snapshot/merge.snapshot.json index c4052fb0..a550739c 100644 --- a/test/snapshot/merge.snapshot.json +++ b/test/snapshot/merge.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "75.52 %", - "statements": "77.92 %", - "branches": "59.73 %", - "functions": "72.38 %", - "lines": "64.87 %" + "bytes": "75.97 %", + "statements": "78.39 %", + "branches": "59.80 %", + "functions": "72.90 %", + "lines": "65.58 %" }, "files": { "my-vm-filename.js": { @@ -83,11 +83,11 @@ "test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -116,6 +116,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/node-api.snapshot.json b/test/snapshot/node-api.snapshot.json index 62de12eb..833801ed 100644 --- a/test/snapshot/node-api.snapshot.json +++ b/test/snapshot/node-api.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "83.35 %", - "statements": "84.04 %", - "branches": "60.43 %", - "functions": "88.46 %", - "lines": "70.53 %" + "bytes": "83.86 %", + "statements": "84.58 %", + "branches": "60.52 %", + "functions": "88.89 %", + "lines": "71.53 %" }, "files": { "monocart-coverage-reports/test/mock/node/src/index.js": { @@ -29,11 +29,11 @@ "monocart-coverage-reports/test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "monocart-coverage-reports/test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "monocart-coverage-reports/test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "monocart-coverage-reports/test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/node-cdp.snapshot.json b/test/snapshot/node-cdp.snapshot.json index 62de12eb..833801ed 100644 --- a/test/snapshot/node-cdp.snapshot.json +++ b/test/snapshot/node-cdp.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "83.35 %", - "statements": "84.04 %", - "branches": "60.43 %", - "functions": "88.46 %", - "lines": "70.53 %" + "bytes": "83.86 %", + "statements": "84.58 %", + "branches": "60.52 %", + "functions": "88.89 %", + "lines": "71.53 %" }, "files": { "monocart-coverage-reports/test/mock/node/src/index.js": { @@ -29,11 +29,11 @@ "monocart-coverage-reports/test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "monocart-coverage-reports/test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "monocart-coverage-reports/test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "monocart-coverage-reports/test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/node-env.snapshot.json b/test/snapshot/node-env.snapshot.json index 62de12eb..833801ed 100644 --- a/test/snapshot/node-env.snapshot.json +++ b/test/snapshot/node-env.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "83.35 %", - "statements": "84.04 %", - "branches": "60.43 %", - "functions": "88.46 %", - "lines": "70.53 %" + "bytes": "83.86 %", + "statements": "84.58 %", + "branches": "60.52 %", + "functions": "88.89 %", + "lines": "71.53 %" }, "files": { "monocart-coverage-reports/test/mock/node/src/index.js": { @@ -29,11 +29,11 @@ "monocart-coverage-reports/test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "monocart-coverage-reports/test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "monocart-coverage-reports/test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "monocart-coverage-reports/test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/node-fgc.snapshot.json b/test/snapshot/node-fgc.snapshot.json index 62de12eb..833801ed 100644 --- a/test/snapshot/node-fgc.snapshot.json +++ b/test/snapshot/node-fgc.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "83.35 %", - "statements": "84.04 %", - "branches": "60.43 %", - "functions": "88.46 %", - "lines": "70.53 %" + "bytes": "83.86 %", + "statements": "84.58 %", + "branches": "60.52 %", + "functions": "88.89 %", + "lines": "71.53 %" }, "files": { "monocart-coverage-reports/test/mock/node/src/index.js": { @@ -29,11 +29,11 @@ "monocart-coverage-reports/test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "monocart-coverage-reports/test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "monocart-coverage-reports/test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "monocart-coverage-reports/test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/node-ins.snapshot.json b/test/snapshot/node-ins.snapshot.json index 62de12eb..833801ed 100644 --- a/test/snapshot/node-ins.snapshot.json +++ b/test/snapshot/node-ins.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "83.35 %", - "statements": "84.04 %", - "branches": "60.43 %", - "functions": "88.46 %", - "lines": "70.53 %" + "bytes": "83.86 %", + "statements": "84.58 %", + "branches": "60.52 %", + "functions": "88.89 %", + "lines": "71.53 %" }, "files": { "monocart-coverage-reports/test/mock/node/src/index.js": { @@ -29,11 +29,11 @@ "monocart-coverage-reports/test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "monocart-coverage-reports/test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "monocart-coverage-reports/test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "monocart-coverage-reports/test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/puppeteer.snapshot.json b/test/snapshot/puppeteer.snapshot.json index 61589c13..217d49bf 100644 --- a/test/snapshot/puppeteer.snapshot.json +++ b/test/snapshot/puppeteer.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "75.96 %", - "statements": "82.00 %", - "branches": "59.92 %", - "functions": "79.01 %", - "lines": "65.13 %" + "bytes": "76.46 %", + "statements": "82.44 %", + "branches": "60.00 %", + "functions": "79.52 %", + "lines": "65.92 %" }, "files": { "test/mock/css/style.css": { @@ -38,11 +38,11 @@ "test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -71,6 +71,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/rollup.snapshot.json b/test/snapshot/rollup.snapshot.json index 39fabb02..b79c50f2 100644 --- a/test/snapshot/rollup.snapshot.json +++ b/test/snapshot/rollup.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "82.34 %", - "statements": "82.00 %", - "branches": "59.60 %", - "functions": "79.75 %", - "lines": "71.76 %" + "bytes": "82.76 %", + "statements": "82.46 %", + "branches": "59.68 %", + "functions": "80.25 %", + "lines": "72.48 %" }, "files": { "src/async.js": { @@ -29,11 +29,11 @@ "src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.88 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.46 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/swc.snapshot.json b/test/snapshot/swc.snapshot.json index 577e255c..7483b1c3 100644 --- a/test/snapshot/swc.snapshot.json +++ b/test/snapshot/swc.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "82.34 %", - "statements": "82.63 %", - "branches": "59.60 %", - "functions": "80.00 %", - "lines": "71.76 %" + "bytes": "82.76 %", + "statements": "83.05 %", + "branches": "59.68 %", + "functions": "80.49 %", + "lines": "72.48 %" }, "files": { "src/async.js": { @@ -29,11 +29,11 @@ "src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "85.53 %", - "lines": "73.87 %", - "bytes": "80.88 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.90 %", + "lines": "74.34 %", + "bytes": "81.46 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "src/branch/conditional.js": { "functions": "100.00 %", @@ -62,6 +62,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %", diff --git a/test/snapshot/v8.snapshot.json b/test/snapshot/v8.snapshot.json index 61589c13..217d49bf 100644 --- a/test/snapshot/v8.snapshot.json +++ b/test/snapshot/v8.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "75.96 %", - "statements": "82.00 %", - "branches": "59.92 %", - "functions": "79.01 %", - "lines": "65.13 %" + "bytes": "76.46 %", + "statements": "82.44 %", + "branches": "60.00 %", + "functions": "79.52 %", + "lines": "65.92 %" }, "files": { "test/mock/css/style.css": { @@ -38,11 +38,11 @@ "test/mock/src/branch/branch.js": { "functions": "70.00 %", "branches": "65.85 %", - "statements": "84.72 %", - "lines": "73.87 %", - "bytes": "80.92 %", - "uncoveredLines": "9-19,27,56-59,73,80-82,107,118-123,135-138,143-145", - "extras": "1c,2b,8b,14b,16c,20b,25b,26c,29b,30c,34b,35c,36c,37c,38c,42b,44b,46b,55b,57c,60b,69b,71b,72c,75b,76c,84b,86b,97b,99b,104b,106c,110b,112b,114b,116b,117b,121c,124b,126b,133b,134b,136c,139b,140c,141c,149b,155b,157b,161b" + "statements": "85.14 %", + "lines": "74.34 %", + "bytes": "81.49 %", + "uncoveredLines": "10-20,28,57-60,74,81-83,108,119-124,136-139,144-146", + "extras": "1c,2b,9b,15b,17c,21b,26b,27c,30b,31c,35b,36c,37c,38c,39c,43b,45b,47b,56b,58c,61b,70b,72b,73c,76b,77c,85b,87b,98b,100b,105b,107c,111b,113b,115b,117b,118b,122c,125b,127b,134b,135b,137c,140b,141c,142c,150b,158b,162b" }, "test/mock/src/branch/conditional.js": { "functions": "100.00 %", @@ -71,6 +71,15 @@ "uncoveredLines": "22-23,33-34,38,45,48-49,59-60", "extras": "1c,2b,4b,10b,15b,19b,25b,29b,36b,40b,47b,51b,58b,62b,65b,66b,68b,73b,75b" }, + "test/mock/src/branch/switch-no-break.js": { + "functions": "100.00 %", + "branches": "66.67 %", + "statements": "100.00 %", + "lines": "100.00 %", + "bytes": "100.00 %", + "uncoveredLines": "", + "extras": "1c,14b,20b" + }, "test/mock/src/branch/switch.js": { "functions": "100.00 %", "branches": "40.91 %",