Skip to content

Refactor AllergyStructureMapper #2177

Refactor AllergyStructureMapper

Refactor AllergyStructureMapper #2177

Triggered via pull request January 21, 2026 09:41
Status Success
Total duration 11m 26s
Artifacts 5

build_workflow.yml

on: pull_request
Matrix: Build & Publish Docker Images
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
2 different changes can be made to line 78 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/PertinentInformationAllergyMapper.java#L78
removed conditional - replaced equality check with false (covered by 40 tests RemoveConditionalMutator_EQUAL_ELSE) removed conditional - replaced equality check with true (covered by 40 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 72 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/PertinentInformationAllergyMapper.java#L72
removed conditional - replaced equality check with true (covered by 40 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to a lambda on line 110 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/PertinentInformationAllergyMapper.java#L110
removed call to filter in 2nd lambda in buildAsserterPertinentInformation (covered by 2 tests RemoveFilterMutator)
A change can be made to line 139 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/PertinentInformationAllergyMapper.java#L139
removed conditional - replaced equality check with true (covered by 40 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 154 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/PertinentInformationAllergyMapper.java#L154
removed conditional - replaced equality check with true (covered by 40 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 128 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L128
removed conditional - replaced equality check with false (covered by 40 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 71 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L71
removed conditional - replaced equality check with false (covered by 40 tests RemoveConditionalMutator_EQUAL_ELSE)
A change can be made to line 107 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L107
removed conditional - replaced equality check with true (covered by 36 tests RemoveConditionalMutator_EQUAL_IF)
2 different changes can be made to line 152 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L152
removed conditional - replaced equality check with false (covered by 41 tests RemoveConditionalMutator_EQUAL_ELSE) replaced boolean return with true for isMedicationOrEnvironmentCategory (covered by 41 tests BooleanTrueReturnValsMutator)
A change can be made to line 153 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L153
removed conditional - replaced equality check with true (covered by 35 tests RemoveConditionalMutator_EQUAL_IF)
A change can be made to line 83 without causing a test to fail: service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/AllergyStructureMapper.java#L83
removed conditional - replaced equality check with true (covered by 29 tests RemoveConditionalMutator_EQUAL_IF)

Artifacts

Produced during runtime
Name Size Digest
Checkstyle Reports Expired
5.4 KB
sha256:11943277f4775f57f667a340de2c6d44ffab48960fbe5efa4f22eb6108538cbe
End-to-End Test Results & Docker Logs Expired
2.37 MB
sha256:86933105317387ef033e5e534e1afe393d57d280ce57a0804e4a4fc668a60312
Integration Test Reports & Docker Logs Expired
1.22 MB
sha256:2113dd1f956ec467bf73a5b07e0bc1b0cf6e002f7e57affea96a3ab046415863
Spotbugs Reports Expired
14.1 KB
sha256:39c9d4867d63d65ea3089d4c38e8600d67c8e18ba54adf322258e61f0d9330f5
Unit Test Reports Expired
1.14 MB
sha256:ced06498aaa3a57c9e2d76de1bba8cb6823b3dffb9223179a1601f55bef06ec6