Bug 1878072 - Increase karma.mc branch coverage to 80 percent r=omc-reviewers,dmose

Differential Revision: https://phabricator.services.mozilla.com/D202631
This commit is contained in:
negin 2024-03-07 19:00:18 +00:00
Родитель a256882f2c
Коммит b8931ee527
2 изменённых файлов: 37 добавлений и 41 удалений

Просмотреть файл

@ -75,19 +75,19 @@ module.exports = function (config) {
statements: 80,
lines: 80,
functions: 80,
branches: 66,
branches: 80,
overrides: {
"modules/*.sys.mjs": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
"modules/AboutWelcomeDefaults.sys.mjs": {
statements: 48.15,
lines: 48.75,
functions: 61.54,
branches: 37.04,
},
"content-src/lib/aboutwelcome-utils.mjs": {
statements: 50,
lines: 50,
functions: 50,
branches: 0,
statements: 73.68,
lines: 73.68,
functions: 71.43,
branches: 66.67,
},
"content-src/components/LanguageSwitcher.jsx": {
// This file is covered by the mochitest: browser_aboutwelcome_multistage_languageSwitcher.js
@ -124,9 +124,11 @@ module.exports = function (config) {
statements: 77.42,
lines: 77.42,
functions: 75,
branches: 73.08,
},
"content-src/components/CTAParagraph.jsx": {
functions: 50,
branches: 75,
},
"content-src/components/HeroImage.jsx": {
branches: 62.5,
@ -139,6 +141,7 @@ module.exports = function (config) {
statements: 76.09,
lines: 75,
functions: 76.92,
branches: 74.07,
},
"content-src/components/MobileDownloads.jsx": {
branches: 56.25,
@ -152,6 +155,12 @@ module.exports = function (config) {
functions: 73.17,
branches: 61.74,
},
"content-src/components/AdditionalCTA.jsx": {
branches: 75,
},
"content-src/components/MultiStageProtonScreen.jsx": {
branches: 79.07,
},
},
},
},

Просмотреть файл

@ -75,43 +75,30 @@ module.exports = function (config) {
statements: 80,
lines: 80,
functions: 80,
branches: 66,
branches: 80,
overrides: {
"content-src/asrouter-utils.js": {
statements: 66,
lines: 66,
functions: 76,
branches: 33,
},
"content-src/components/ASRouterAdmin/*.jsx": {
"content-src/components/ASRouterAdmin/SimpleHashRouter.jsx": {
statements: 0,
lines: 0,
functions: 0,
lines: 0,
},
"content-src/components/ASRouterAdmin/CopyButton.jsx": {
statements: 7.14,
lines: 7.69,
branches: 0,
functions: 0,
},
"content-src/components/ModalOverlay/ModalOverlay.jsx": {
statements: 92,
lines: 92,
functions: 100,
branches: 66,
"content-src/components/ASRouterAdmin/ImpressionsSection.jsx": {
statements: 7.14,
lines: 7.5,
branches: 0,
functions: 0,
},
"modules/ASRouter.sys.mjs": {
statements: 75,
lines: 75,
functions: 64,
branches: 66,
},
"modules/ASRouterParentProcessMessageHandler.sys.mjs": {
statements: 98,
lines: 98,
functions: 100,
branches: 88,
},
"modules/ToolbarPanelHub.sys.mjs": {
statements: 88,
lines: 88,
functions: 94,
branches: 84,
"content-src/components/ASRouterAdmin/ASRouterAdmin.jsx": {
statements: 39.19,
lines: 39.19,
branches: 47.15,
functions: 32.08,
},
},
},