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 sql unit tests #1025

Merged
merged 1 commit into from Mar 9, 2024
Merged

test: add sql unit tests #1025

merged 1 commit into from Mar 9, 2024

Conversation

Shinigami92
Copy link
Collaborator

No description provided.

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

github-actions bot commented Mar 9, 2024

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 57.46% (🎯 57%)
⬆️ +0.17%
3318 / 5774
🟢 Statements 57.46% (🎯 57%)
⬆️ +0.17%
3318 / 5774
🟢 Functions 57.03% (🎯 57%)
🟰 ±0%
146 / 256
🟢 Branches 82.38% (🎯 82%)
⬆️ +0.07%
421 / 511
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Unchanged Files
src/db.ts 80% 86.36% 50% 80% 66-68, 97, 100-112, 125-130, 133-139, 152-154
src/index.ts 100% 100% 100% 100%
src/migration-builder.ts 95.57% 75% 62.5% 95.57% 329-336, 461-466, 476-478, 481-483, 490-491
src/migration.ts 70.9% 80% 50% 70.9% 54-66, 69, 72-80, 110-112, 117-153, 210-211, 236-244, 247-248, 259-260, 265-268, 289-291, 297-298
src/runner.ts 12.78% 100% 0% 12.78% 28-71, 74-81, 84-91, 94-131, 134-148, 151-200, 203-215, 218-226, 229-252, 255-352
src/sqlMigration.ts 92% 100% 80% 92% 47-50
src/types.ts 100% 100% 100% 100%
src/utils.ts 96.81% 86.04% 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.07% 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 43.47% 100% 40% 43.47% 13-29, 33-40, 47-60, 69-74, 81-86, 89
src/operations/policiesTypes.ts 0% 0% 0% 0% 1-43
src/operations/roles.ts 67.13% 30% 60% 67.13% 41-42, 45-46, 49-52, 55-59, 62-66, 69-73, 76-80, 87-93, 121-126, 133-137, 140
src/operations/rolesTypes.ts 0% 0% 0% 0% 1-52
src/operations/schemas.ts 52% 100% 42.85% 52% 8-15, 22-31, 40-44, 47
src/operations/schemasTypes.ts 0% 0% 0% 0% 1-24
src/operations/sequences.ts 30.3% 100% 44.44% 30.3% 15-64, 68-75, 82-94, 103-117, 122-126, 129
src/operations/sequencesTypes.ts 0% 0% 0% 0% 1-58
src/operations/tables.ts 67.67% 71.69% 60% 67.67% 64-65, 68-69, 75, 120-124, 149, 153-154, 157-158, 161-162, 169-170, 173-174, 199-200, 203-210, 213-214, 251-260, 322-324, 327-330, 353-378, 417-421, 436, 446-447, 459-467, 477, 479-480, 497-511, 520-596, 601-605, 614-619, 622, 629-634, 637, 644-652, 683-690
src/operations/tablesTypes.ts 0% 0% 0% 0% 1-220
src/operations/triggers.ts 23.33% 100% 37.5% 23.33% 17-25, 32-110, 113-128, 135-144, 147
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 35.62% 100% 41.66% 35.62% 24-31, 35-42, 49-76, 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 #55

@Shinigami92 Shinigami92 merged commit f111be5 into main Mar 9, 2024
32 checks passed
@Shinigami92 Shinigami92 deleted the test/add-sql-unit-tests branch March 9, 2024 09:35
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.

None yet

1 participant