Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add triggers unit tests #1036

Merged
merged 1 commit into from
Mar 17, 2024
Merged

Conversation

Shinigami92
Copy link
Collaborator

No description provided.

@Shinigami92 Shinigami92 added this to the v7.0 milestone Mar 17, 2024
@Shinigami92 Shinigami92 self-assigned this Mar 17, 2024
Copy link

github-actions bot commented Mar 17, 2024

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 70.44% (🎯 65%)
⬆️ +1.80%
4068 / 5775
🟢 Statements 70.44% (🎯 65%)
⬆️ +1.80%
4068 / 5775
🟢 Functions 76.95% (🎯 70%)
⬆️ +1.95%
197 / 256
🟢 Branches 83.33% (🎯 83%)
⬇️ -0.27%
630 / 756
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Unchanged Files
src/db.ts 87.87% 88.46% 87.5% 87.87% 66-68, 97, 100-112, 152-154
src/index.ts 100% 100% 100% 100%
src/migration-builder.ts 97.38% 92.3% 87.5% 97.38% 330-334, 461-466, 490-491
src/migration.ts 78.26% 78.04% 58.33% 78.26% 65, 69, 72-80, 110-112, 117-153, 210-211, 236-239, 247-248, 265-268, 297-298
src/runner.ts 74.43% 58.18% 80% 74.43% 42, 69-70, 79-80, 84-91, 129-130, 169-172, 181-185, 198, 203-215, 234, 236-242, 245, 258, 270-283, 286-289, 299-300, 309-311, 320, 322-331, 343-350
src/sqlMigration.ts 92% 100% 80% 92% 47-50
src/types.ts 100% 100% 100% 100%
src/utils.ts 96.81% 87.35% 100% 96.81% 115, 133, 206-207, 210-211, 218-219
src/operations/PgLiteral.ts 86.66% 100% 50% 86.66% 13-14
src/operations/domains.ts 100% 100% 100% 100%
src/operations/domainsTypes.ts 0% 0% 0% 0% 1-44
src/operations/extensions.ts 100% 100% 100% 100%
src/operations/extensionsTypes.ts 0% 0% 0% 0% 1-72
src/operations/functions.ts 100% 100% 100% 100%
src/operations/functionsTypes.ts 0% 0% 0% 0% 1-52
src/operations/generalTypes.ts 0% 0% 0% 0% 1-43
src/operations/indexes.ts 94.15% 91.22% 100% 94.15% 21, 31-34, 43, 72, 121-122
src/operations/indexesTypes.ts 0% 0% 0% 0% 1-52
src/operations/operators.ts 76.56% 95% 79.16% 76.56% 142-162, 168-179, 188-199, 253-272, 275-280
src/operations/operatorsTypes.ts 0% 0% 0% 0% 1-126
src/operations/other.ts 100% 100% 100% 100%
src/operations/othersTypes.ts 0% 0% 0% 0% 1-7
src/operations/policies.ts 100% 94.44% 100% 100%
src/operations/policiesTypes.ts 0% 0% 0% 0% 1-43
src/operations/roles.ts 97.2% 77.27% 100% 97.2% 57, 63, 70, 77
src/operations/rolesTypes.ts 0% 0% 0% 0% 1-52
src/operations/schemas.ts 100% 100% 100% 100%
src/operations/schemasTypes.ts 0% 0% 0% 0% 1-24
src/operations/sequences.ts 92.42% 82.85% 100% 92.42% 32, 34-35, 40-41, 54-55, 60-61, 109
src/operations/sequencesTypes.ts 0% 0% 0% 0% 1-58
src/operations/tables.ts 89.89% 83.76% 96.66% 89.89% 64-65, 68-69, 120-124, 149, 153-154, 173-174, 199-200, 203-210, 213-214, 353-378, 417-421, 436, 446-447, 552, 561-569
src/operations/tablesTypes.ts 0% 0% 0% 0% 1-221
src/operations/triggers.ts 92.66% 78.78% 100% 92.66% 59-60, 72-73, 76-77, 80-83, 124
src/operations/triggersTypes.ts 0% 0% 0% 0% 1-53
src/operations/types.ts 50.83% 100% 45% 50.83% 29-36, 43-59, 70-79, 86-95, 104-109, 114-127, 134-138, 149-158, 161, 168-173, 176
src/operations/typesTypes.ts 0% 0% 0% 0% 1-78
src/operations/views.ts 54.37% 50% 58.33% 54.37% 27-31, 35-42, 71, 85-118, 125-144, 151-155
src/operations/viewsMaterialized.ts 42.93% 100% 37.5% 42.93% 24, 28-39, 45-52, 61-86, 97-134, 143-147, 158-167, 170, 179-186
src/operations/viewsMaterializedTypes.ts 0% 0% 0% 0% 1-80
src/operations/viewsTypes.ts 0% 0% 0% 0% 1-55
Generated in workflow #128

@Shinigami92 Shinigami92 force-pushed the test/add-triggers-unit-tests branch from 21fa969 to dc025cc Compare March 17, 2024 12:29
@Shinigami92 Shinigami92 merged commit 4eea2d1 into main Mar 17, 2024
32 checks passed
@Shinigami92 Shinigami92 deleted the test/add-triggers-unit-tests branch March 17, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant