Skip to content

Conversation

@KomsteRr
Copy link
Collaborator

…ication

@KomsteRr KomsteRr self-assigned this Dec 16, 2025
@KomsteRr KomsteRr linked an issue Dec 16, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

badge

Backend Coverage Summary

Filename                                                             Stmts    Miss  Cover    Missing
-----------------------------------------------------------------  -------  ------  -------  ------------------------------------------------------------------------------
src/app.controller.ts                                                    7       0  100.00%
src/app.module.ts                                                       33       0  100.00%
src/app.service.ts                                                       3       0  100.00%
src/enum.ts                                                             25       0  100.00%
src/main.ts                                                             23      23  0.00%    3-40
src/swagger-config.ts                                                   16       6  62.50%   68-78
src/action-log/action-log.service.ts                                     5       0  100.00%
src/actor/actor.controller.ts                                           26       1  96.15%   43
src/actor/actor.module.ts                                                9       0  100.00%
src/actor/actor.service.ts                                              56       6  89.28%   33, 39, 114, 125-126, 140
src/actor/dto/actor.dto.ts                                              13       0  100.00%
src/actor/infrastructure/repository/actor.repository.ts                 23       1  95.65%   42
src/actor/map/actor.map.ts                                               2       2  0.00%    3-4
src/actorType/actorType.controller.ts                                   25       8  68.00%   63, 78, 100, 121, 136, 165-171, 182
src/actorType/actorType.module.ts                                        6       0  100.00%
src/actorType/actorType.service.ts                                      16      12  25.00%   12-46
src/actorType/dto/actorType.dto.ts                                       9       0  100.00%
src/actorType/dto/app-perms-matrix.dto.ts                               21       0  100.00%
src/actorType/infrastructure/repository/actorType.repository.ts         13       9  30.76%   15-54
src/cmd/index.ts                                                         5       5  0.00%    1-11
src/cmd/user/create.ts                                                  12      12  0.00%    2-32
src/cmd/user/index.ts                                                    4       4  0.00%    2-8
src/common/base.service.ts                                              38       8  78.94%   19, 25-29, 44-45, 81, 101, 127
src/common/common.module.ts                                              3       0  100.00%
src/common/decorators/admin.decorator.ts                                 4       0  100.00%
src/common/decorators/application.decorator.ts                           4       0  100.00%
src/common/decorators/user-capability.decorator.ts                       4       0  100.00%
src/common/decorators/user-id.decorator.ts                               4       0  100.00%
src/common/decorators/user.decorator.ts                                  4       0  100.00%
src/common/dto/index.ts                                                  2       0  100.00%
src/common/dto/paginated-response.dto.ts                                 6       0  100.00%
src/common/dto/pagination.dto.ts                                        10       0  100.00%
src/common/guards/admin.guard.ts                                        15       2  86.66%   28, 34
src/common/guards/application.guard.ts                                  45       3  93.33%   82, 90-91
src/common/guards/user-capability.guard.ts                              14       2  85.71%   26, 30
src/common/service/excel-builder.service.ts                             33      30  9.09%    13-69
src/common/utils/enum.utils.ts                                           3       2  33.33%   5-6
src/common/utils/excel.utils.ts                                          2       1  50.00%   2
src/common/utils/pagination.utils.ts                                     5       1  80.00%   22
src/common/utils/quality.utils.ts                                       17       0  100.00%
src/common/utils/types.ts                                                2       0  100.00%
src/compliances/compliances.controller.ts                               35       2  94.28%   36, 116
src/compliances/compliances.module.ts                                    7       0  100.00%
src/compliances/compliances.service.ts                                  14       0  100.00%
src/compliances/dto/create-compliance.dto.ts                            35       0  100.00%
src/compliances/dto/update-compliance.dto.ts                             3       0  100.00%
src/compliances/entities/compliance.entity.ts                            1       1  0.00%    3
src/compliances/utils/compliance.utils.ts                                7       0  100.00%
src/config/app-config.ts                                                 3       0  100.00%
src/config/config.controller.ts                                          8       0  100.00%
src/config/config.module.ts                                              4       0  100.00%
src/config/config.service.ts                                             7       0  100.00%
src/config/configs/app.config.ts                                        16       1  93.75%   32
src/config/configs/database.config.ts                                    6       1  83.33%   6
src/config/configs/email.config.ts                                       2       0  100.00%
src/config/configs/index.ts                                              9       0  100.00%
src/config/configs/keycloak.config.ts                                   15       4  73.33%   17, 20, 23, 26
src/config/domain/configs.entity.ts                                      2       2  0.00%    1-7
src/config/dto/config.dto.ts                                            11       0  100.00%
src/email/email-templates.services.ts                                   40       6  85.00%   23-25, 48-50
src/email/email.module.ts                                                7       0  100.00%
src/email/email.service.ts                                              69      37  46.37%   44-45, 49-50, 74-76, 87-88, 92-93, 118-204
src/email/cron/email-cron.service.ts                                    62      54  12.90%   32-176
src/health/health-check.controller.ts                                   10       4  60.00%   35-39
src/health/health-check.module.ts                                        4       0  100.00%
src/hosting-option/hosting-option.controller.ts                         14       1  92.85%   72
src/hosting-option/hosting-option.module.ts                              5       0  100.00%
src/hosting-option/hosting-option.service.ts                            18       2  88.88%   26, 29
src/hosting-option/dto/hosting-option.dto.ts                            17       0  100.00%
src/hostings/hostings.controller.ts                                     23       1  95.65%   34
src/hostings/hostings.module.ts                                          9       0  100.00%
src/hostings/hostings.service.ts                                        20       3  85.00%   22-26, 34
src/hostings/site.controller.ts                                         10       1  90.00%   23
src/hostings/dto/hosting.dto.ts                                         11       0  100.00%
src/hostings/entities/hosting.entity.ts                                  1       1  0.00%    1
src/hostings/infrastructure/repository/hosting.repository.ts            24       5  79.16%   40-44, 117, 142-148
src/labels/labels.controller.ts                                         19       0  100.00%
src/labels/labels.module.ts                                              6       0  100.00%
src/labels/labels.service.ts                                            15       7  53.33%   29-61
src/labels/dto/create-label.dto.ts                                       5       0  100.00%
src/labels/dto/filters.dto.ts                                            3       3  0.00%    1-6
src/labels/dto/label.dto.ts                                              7       0  100.00%
src/labels/dto/update-label.dto.ts                                       3       3  0.00%    1-4
src/labels/entities/label.entity.ts                                      1       1  0.00%    1
src/links/links.controller.ts                                           22       0  100.00%
src/links/links.module.ts                                                7       0  100.00%
src/links/links.service.ts                                              11       0  100.00%
src/links/dto/links.dto.ts                                              17       0  100.00%
src/links/entities/link.entity.ts                                        1       1  0.00%    5
src/logger/logger.module.ts                                              6       0  100.00%
src/logger/logger.service.ts                                             9       4  55.55%   9-17, 25
src/logger/request-logging.interceptor.ts                               20      20  0.00%    1-51
src/metadatas/metadatas.controller.ts                                   18       4  77.77%   31, 42, 64, 81
src/metadatas/metadatas.module.ts                                        6       0  100.00%
src/metadatas/metadatas.service.ts                                      56      18  67.85%   20-26, 57-76, 99-105
src/metadatas/dto/metadata-filters.dto.ts                                2       2  0.00%    1-3
src/metadatas/dto/metadata.dto.ts                                       32       0  100.00%
src/metadatas/infrastructure/metadata.repository.ts                     33      27  18.18%   15-105
src/middlewares/auth.middleware.ts                                      35       3  91.42%   45, 71-72
src/notification/anomaly-notification.controller.ts                     36       6  83.33%   118, 157, 179, 202, 223, 241
src/notification/anomaly-notification.module.ts                          6       0  100.00%
src/notification/anomaly-notification.service.ts                        40      15  62.50%   23-24, 27, 71-79, 93, 142-177
src/notification/dto/anomaly-filters.dto.ts                             22       3  86.36%   21, 41, 47
src/notification/dto/anomaly-notification.dto.ts                        20       1  95.00%   18
src/notification/dto/create-anomaly-notification.dto.ts                  9       0  100.00%
src/notification/dto/update-anomaly-notification.dto.ts                  3       0  100.00%
src/organizations/organizations.controller.ts                           18       0  100.00%
src/organizations/organizations.module.ts                                5       0  100.00%
src/organizations/organizations.service.ts                              49      15  69.38%   26-45, 60-78, 101
src/organizations/dto/filters.dto.ts                                    13       4  69.23%   8, 12, 21, 34
src/organizations/dto/organizations.dto.ts                              14       0  100.00%
src/prisma/prisma.module.ts                                              4       0  100.00%
src/prisma/prisma.service.ts                                            12       0  100.00%
src/product/application.controller.ts                                   49       9  81.63%   109, 123, 169, 201-215, 257-258
src/product/application.module.ts                                       13       0  100.00%
src/product/application.service.ts                                     104      45  56.73%   23, 78, 111-112, 120-121, 155-247, 255, 258, 264, 281, 307
src/product/export.service.ts                                           13       7  46.15%   14-30
src/product/application/dto/create-application.dto.ts                   24       0  100.00%
src/product/application/dto/get-application.dto.ts                      29       1  96.55%   70
src/product/application/dto/search-application.dto.ts                   42      14  66.66%   43, 56, 82, 90, 158, 173, 183, 196-206, 216
src/product/application/map/application-export.map.ts                   44      31  29.54%   14-34, 38-44, 52-53, 67-82, 86-90, 105-106, 116-117, 128-129, 139-140, 152-153
src/product/application/usecases/application-export.usecase.ts          14       4  71.42%   28-369
src/product/columnLabels/application-export.columnLabels.ts              1       0  100.00%
src/product/constants/application-export.sheet-labels.ts                 1       0  100.00%
src/product/constants/enum-label.ts                                      6       0  100.00%
src/product/constants/relation-type-labels.ts                            1       0  100.00%
src/product/domain/application.entity.ts                                 1       1  0.00%    1
src/product/infrastructure/repository/application.repository.ts         37      15  59.45%   17, 67-68, 317-352, 417
src/relationship/relation.controller.ts                                 22       0  100.00%
src/relationship/relation.module.ts                                      7       0  100.00%
src/relationship/relation.service.ts                                    12       0  100.00%
src/relationship/application/dto/relation-application.dto.ts            29       0  100.00%
src/relationship/infrastructure/repository/relation.repository.ts       51       4  92.15%   205, 209, 259, 263
src/services/keycloak.service.ts                                        14       0  100.00%
src/services/logging.service.ts                                         15      11  26.66%   11-36
src/stats/stats.module.ts                                                8       0  100.00%
src/stats/application/stats.service.ts                                  26      19  26.92%   17-61
src/stats/application/dto/get-iq-avg-grouped.dto.ts                      7       0  100.00%
src/stats/application/use-cases/get-iq-avg-grouped.use-case.ts.ts        8       3  62.50%   15-21
src/stats/cron/stats.cron.service.ts                                    12       5  58.33%   13-18
src/stats/infrastructure/stats.repository.ts                            14      10  28.57%   16-47
src/stats/infrastructure/helpers/stats.aggregator.ts                    25      23  8.00%    16-58
src/stats/infrastructure/helpers/stats.helper.ts                        12      10  16.66%   9-30
src/stats/interfaces/stats.controller.ts                                 8       1  87.50%   67
src/statuses/statuses.controller.ts                                     39      20  48.71%   37-57, 68, 86-104, 121-133
src/statuses/statuses.module.ts                                          8       0  100.00%
src/statuses/statuses.service.ts                                         9       4  55.55%   13-30
src/statuses/dto/application-status.dto.ts                              14       2  85.71%   32, 52
src/statuses/dto/update-application-status.dto.ts                        3       0  100.00%
src/statuses/entities/status.entity.ts                                   1       1  0.00%    3
src/tag/tags.controller.ts                                              21       0  100.00%
src/tag/tags.module.ts                                                   6       0  100.00%
src/tag/tags.service.ts                                                 14       3  78.57%   28-31
src/tag/dto/tag.dto.ts                                                  14       0  100.00%
src/tag/entities/tag.entity.ts                                           1       1  0.00%    1
src/tag/infrastructure/repository/tag.repository.ts                     18       3  83.33%   32-35
src/technical-debt-info/technical-debt-info.controller.ts               25       1  96.00%   94
src/technical-debt-info/technical-debt-info.module.ts                    7       0  100.00%
src/technical-debt-info/technical-debt-info.service.ts                  14       0  100.00%
src/technical-debt-info/dto/create-technical-debt-info.dto.ts            9       0  100.00%
src/technical-debt-info/dto/update-technical-debt-info.dto.ts            3       0  100.00%
src/technical-debt-info/entities/technical-debt-info.entity.ts           1       1  0.00%    1
src/token/token.controller.ts                                           24       7  70.83%   50, 64, 82, 98, 117, 133, 149
src/token/token.module.ts                                                6       0  100.00%
src/token/token.service.ts                                              45      36  20.00%   23-59, 67-113
src/token/domain/token-status.entity.ts                                  1       0  100.00%
src/token/domain/token.entity.ts                                         2       2  0.00%    4-18
src/token/dto/token.dto.ts                                              18       0  100.00%
src/token/repository/token.repository.ts                                20      13  35.00%   19-119
src/token/use-cases.ts/token-control.use-case.ts                        34      27  20.58%   16-28, 34-42, 47-70
src/user/user.controller.ts                                             24       6  75.00%   35, 49, 60, 71, 92, 114
src/user/user.module.ts                                                  6       0  100.00%
src/user/user.service.ts                                                29      19  34.48%   34-180
src/user/dto/filters.dto.ts                                              9       1  88.88%   22
src/user/dto/update-user.dto.ts                                          9       0  100.00%
src/user/dto/users.dto.ts                                                5       0  100.00%
src/user/entities/user.entity.ts                                        30       0  100.00%
src/utils/constants.util.ts                                              2       0  100.00%
src/utils/functions.ts                                                  12      10  16.66%   2-3, 8-22
src/utils/request-size.util.ts                                           5       5  0.00%    1-6
src/utils/sanitize-headers.util.ts                                       4       4  0.00%    1-6
tests/getToken.ts                                                        4       0  100.00%
tests/setup.ts                                                          22       0  100.00%
tests/fakers/actor-type.faker.ts                                        23       2  91.30%   53, 78
tests/fakers/actor.faker.ts                                              7       0  100.00%
tests/fakers/application.faker.ts                                       14       0  100.00%
tests/fakers/hosting-option.faker.ts                                     9       0  100.00%
tests/fakers/hosting.faker.ts                                            7       0  100.00%
tests/fakers/link.faker.ts                                               4       0  100.00%
tests/fakers/organization.faker.ts                                       5       0  100.00%
tests/fakers/prisma.ts                                                   5       0  100.00%
tests/fakers/tag.faker.ts                                                5       0  100.00%
tests/fakers/technical-debt-info.faker.ts                                9       9  0.00%    2-33
tests/fakers/user.faker.ts                                              16       0  100.00%
TOTAL                                                                 2952     791  73.20%

Diff against main

Filename      Stmts    Miss  Cover
----------  -------  ------  --------
TOTAL             0       0  +100.00%

Results for commit: 5d77338

Minimum allowed coverage is 70%

♻️ This comment has been updated with latest results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PLAYWRIGHT]🧪 Créer une fiche application

2 participants