omermorad / mockingbird

🐦 Decorator Powered TypeScript Library for Creating Mocks
MIT License
87 stars 5 forks source link

refactor(parser): add mock generator and remove analyzer #107

Closed omermorad closed 3 years ago

omermorad commented 3 years ago

Add MockGenerator Remove ClassAnalyzer moving all the logics into ClassParser

BREAKING CHANGE: ClassAnalayzer has been removed and all the logic has been moved to ClassParser

codecov-commenter commented 3 years ago

Codecov Report

Merging #107 (64acb40) into release (b4d51ff) will decrease coverage by 3.37%. The diff coverage is 98.36%.

Impacted file tree graph

@@             Coverage Diff             @@
##           release     #107      +/-   ##
===========================================
- Coverage    97.27%   93.90%   -3.38%     
===========================================
  Files           18       17       -1     
  Lines          294      279      -15     
  Branches        43       42       -1     
===========================================
- Hits           286      262      -24     
- Misses           6       12       +6     
- Partials         2        5       +3     
Impacted Files Coverage Ξ”
.../parser/src/lib/handlers/callback-value-handler.ts 100.00% <ΓΈ> (ΓΈ)
...ages/parser/src/lib/handlers/enum-value-handler.ts 100.00% <ΓΈ> (ΓΈ)
...r/src/lib/handlers/object-literal-value-handler.ts 100.00% <ΓΈ> (ΓΈ)
...kages/parser/src/lib/handlers/primitive-handler.ts 100.00% <ΓΈ> (ΓΈ)
...parser/src/lib/handlers/primitive-value-handler.ts 100.00% <ΓΈ> (ΓΈ)
...ges/parser/src/lib/handlers/regex-value-handler.ts 100.00% <ΓΈ> (ΓΈ)
...ackages/parser/src/lib/generator/mock-generator.ts 61.53% <80.00%> (ΓΈ)
...ckages/mockingbird/src/lib/builder/mock-builder.ts 100.00% <100.00%> (ΓΈ)
...kages/mockingbird/src/lib/builder/mock-producer.ts 71.42% <100.00%> (-1.91%) :arrow_down:
...ckages/mockingbird/src/lib/factory/mock-factory.ts 100.00% <100.00%> (ΓΈ)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update b4d51ff...64acb40. Read the comment docs.