@elisra-devops/docgen-data-provider 1.82.0 → 1.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/modules/ResultDataProvider.js +8 -1
- package/bin/modules/ResultDataProvider.js.map +1 -1
- package/bin/tests/modules/ResultDataProvider.test.js +52 -0
- package/bin/tests/modules/ResultDataProvider.test.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/ResultDataProvider.ts +7 -1
- package/src/tests/modules/ResultDataProvider.test.ts +63 -0
|
@@ -580,7 +580,14 @@ class ResultDataProvider {
|
|
|
580
580
|
return !linkedBaseKeys.has(baseKey);
|
|
581
581
|
});
|
|
582
582
|
const missingFamily = [...expectedFamilyCodes].filter((code) => !linkedFullCodes.has(code));
|
|
583
|
-
|
|
583
|
+
// Direction B is family-based: if any member of a family is mentioned in Expected Result,
|
|
584
|
+
// linked members of that same family are not considered "linked but not mentioned".
|
|
585
|
+
const extraLinked = [...linkedFullCodes].filter((code) => {
|
|
586
|
+
const baseKey = this.toRequirementKey(code);
|
|
587
|
+
if (!baseKey)
|
|
588
|
+
return false;
|
|
589
|
+
return !mentionedBaseKeys.has(baseKey);
|
|
590
|
+
});
|
|
584
591
|
const mentionedButNotLinkedByStep = new Map();
|
|
585
592
|
const appendMentionedButNotLinked = (requirementId, stepRef) => {
|
|
586
593
|
const normalizedRequirementId = this.normalizeMewpRequirementCodeWithSuffix(requirementId);
|