Closed hossenlopp closed 1 year ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 85.42% (+0.17% πΌ) |
2022/2367 |
π‘ | Branches | 73.99% (+0.09% πΌ) |
1801/2434 |
π’ | Functions | 87.5% (+0.16% πΌ) |
357/408 |
π’ | Lines | 85.73% (+0.16% πΌ) |
1952/2277 |
379 tests passing in 29 suites.
Report generated by π§ͺjest coverage report action from 433047808a19ed65532ec95f2418e73d202af2a1
Summary
Adds a combined/flattened version of all
relatedArtifact
lists in a measure bundle to the measure data-requirements output.New behavior
Combines all
relatedArtifact
objects in a measure bundle's Measure and Library resources into one list, makes the list unique and puts the resulting list on therelatedArtifact
property of the the data-requirements output.Code changes
src/helpers/DataRequirementHelpers.ts
- New helper functiongetFlattenedRelatedArtifacts
that compiles the flat list ofrelatedArtifact
s.src/calculation/Calculator.ts
- Calls new helper function to get the list assembled and adds it to the dataRequirements output.Testing guidance
Run unit tests. Run data-requirements on a measure bundle and spot check that elements in the
relatedArtifacts
attributes on Measure and Library resources are ending up in therelatedArtifacts
attribute in the resulting data-requirements output.