asarazan / martok

https://www.npmjs.com/package/martok
10 stars 0 forks source link

Tagged Union Dedupes #48

Closed asarazan closed 2 years ago

asarazan commented 2 years ago

Tests pass and I think it should work for most cases. Need to put it through paces on internal project.

Resolves https://github.com/asarazan/martok/issues/47

github-actions[bot] commented 2 years ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements 93.63% 809/864
🟢 Branches 90.12% 383/425
🟢 Functions 93.64% 162/173
🟢 Lines 94.56% 765/809
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------- | :--------- | :------- | :-------- | :---- | | 🟢 |
`...` / TypeReplacer.ts
| 99.05% | 92.86% | 100% | 100% | | 🟢 |
`...` / QualifiedName.ts
| 100% | 100% | 100% | 100% |
Show files with reduced coverage 🔻
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------- | :--------- | :------- | :----------------------------------------------------------- | :----------------------------------------------------------- | | 🟢 |
`...` / KlassGenerator.ts
| 95.33% | 93.81% | 100% | 95% | | 🟢 |
`...` / TaggedUnionGenerator.ts
| 92.86% | 70.97% |
93.75% (-6.25% 🔻)
|
98.78% (-1.22% 🔻)
|

Test suite run success

23 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from bd7f91107d9d612602e895c6e43a29c2ba934635

codecov-commenter commented 2 years ago

Codecov Report

Merging #48 (bd7f911) into main (53bd213) will increase coverage by 0.91%. The diff coverage is 98.22%.

@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
+ Coverage   93.37%   94.28%   +0.91%     
==========================================
  Files          22       24       +2     
  Lines         800      945     +145     
  Branches      188      219      +31     
==========================================
+ Hits          747      891     +144     
- Misses         50       51       +1     
  Partials        3        3              
Impacted Files Coverage Δ
src/martok/declarations/OrdinalEnumGenerator.ts 100.00% <ø> (ø)
src/martok/declarations/StringEnumGenerator.ts 100.00% <ø> (ø)
src/typescript/MemberHelpers.ts 97.80% <ø> (ø)
src/martok/declarations/TaggedUnionGenerator.ts 98.86% <66.66%> (-1.14%) :arrow_down:
src/kotlin/Klass.ts 82.35% <77.77%> (+1.10%) :arrow_up:
src/kotlin/KlassPrinter.ts 95.95% <100.00%> (+0.12%) :arrow_up:
src/kotlin/QualifiedName.ts 100.00% <100.00%> (ø)
src/martok/Martok.ts 87.64% <100.00%> (+0.89%) :arrow_up:
src/martok/MartokFormatter.ts 100.00% <100.00%> (ø)
src/martok/declarations/DeclarationGenerator.ts 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.