x
Indholdsfortegnelse
Code coverage
Code coverage rapporten bliver håndteret af et JaCoCo plugin i Maven.
Det er kun klasser som er blevet udviklet i forbindelse med denne service. Alle klasser der er autogenereret, eller som kommer i form af afhængigheder, de er blevet sorteret fra i rapporten.
| Instructions | Branches | Complexity | Lines | Methods | Classes | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Element | Missed | Tested | Coverage | Missed | Tested | Coverage | Missed | Total | Missed | Total | Missed | Total | Missed | Total |
| dk.nsi.sdm4.sor2.parser | 39 | 1294 | 97% | 7 | 79 | 91% | 7 | 76 | 5 | 242 | 0 | 29 | 0 | 3 |
| dk.nsi.sdm4.sor2.util | 30 | 5088 | 99% | 2 | 19 | 90% | 7 | 42 | 9 | 365 | 5 | 30 | 2 | 7 |
| dk.nsi.sdm4.sor2.config | 18 | 22 | 55% | 0 | 0 | N/A | 4 | 10 | 4 | 10 | 4 | 10 | 1 | 3 |
| dk.nsi.sdm4.sor2.helper | 11 | 36 | 76% | 0 | 0 | N/A | 0 | 4 | 2 | 13 | 0 | 4 | 0 | 1 |
| Total | 98 | 6440 | 98% | 9 | 98 | 91% | 18 | 132 | 20 | 630 | 9 | 73 | 3 | 14 |
Nærmere uddybning af hver pakke kan findes i JaCoCo rapporten, som bliver genereret ved hver eksekvering af unit tests.
Unit tests
Unit tests gør flittig brug af mocking frameworked Mockito i tests, for at kunne komme i forskellige situationer. De forskellige test klasser tester udelukkende på den klasse de er opkaldt efter, og alle andre er mocked af, for at kontrollere testmiljøet fuldstændigt.
| Class | Method | Result |
|---|---|---|
| PropertiesHelperTest | callGetPropertyInvalidShouldSucceed | |
| callGetPropertyValidShouldSucceed | ||
| Sor2FileParserTest | callParseFileInvalidFieldValueShouldFail | |
| callParseFileInvalidFileFormatShouldFail | ||
| callParseFileUnreliableThrowShouldFail | ||
| callParseFileValidShouldSucceed | ||
| callParserFileExtraHeaderShouldSucceed | ||
| callParserFileMissingHeaderShouldFail | ||
| Sor2ParserTest | callParseDatasetMissingFileShouldFail | |
| callParseDatasetNotDirectoryShouldFail | ||
| callParseDatasetNotReadableShouldFail | ||
| callParseEmptyDatasetShouldFail | ||
| callParseExceptionShouldFail | ||
| callParseValidShouldSucceed | ||
| callParseValidWithExistingShouldSucceed | ||
| callParseValidWithObsoleteShouldSucceed | ||
| callParseZipContainingUnknownFileShouldSucceed | ||
| Sor2RowParserTest | inputBigintegerInvalidHandleNullReplaceInvalid1 | |
| inputBigintegerInvalidHandleNullReplaceInvalid2 | ||
| inputBigintegerInvalidHandleNullReplaceThrowInvalid1 | ||
| inputBigintegerInvalidHandleNullReplaceThrowInvalid2 | ||
| inputBigintegerInvalidHandleNullReplaceThrowUnreliable | ||
| inputBigintegerInvalidHandleNullReplaceUnreliable | ||
| inputBigintegerInvalidHandleNullThrowUnreliable | ||
| inputBigintegerInvalidHandleNullUnreliable | ||
| inputBigintegerInvalidHandleReplaceInvalid1 | ||
| inputBigintegerInvalidHandleReplaceInvalid2 | ||
| inputBigintegerInvalidHandleReplaceThrowInvalid1 | ||
| inputBigintegerInvalidHandleReplaceThrowInvalid2 | ||
| inputBigintegerInvalidHandleReplaceThrowUnreliable | ||
| inputBigintegerInvalidHandleReplaceUnreliable | ||
| inputBigintegerInvalidHandleThrow | ||
| inputBigintegerNullHandleNullNotUnreliable | ||
| inputBigintegerNullHandleNullReplaceNotUnreliable | ||
| inputBigintegerNullHandleNullReplaceThrowNotUnreliable | ||
| inputBigintegerNullHandleNullThrowNotUnreliable | ||
| inputBigintegerNullHandleReplaceInvalid1 | ||
| inputBigintegerNullHandleReplaceInvalid2 | ||
| inputBigintegerNullHandleReplaceThrowInvalid1 | ||
| inputBigintegerNullHandleReplaceThrowInvalid2 | ||
| inputBigintegerNullHandleReplaceThrowUnreliable | ||
| inputBigintegerNullHandleReplaceUnreliable | ||
| inputBigintegerNullHandleThrow | ||
| inputBigintegerValidNotUnreliable | ||
| inputBooleanInvalidHandleNullReplaceInvalid1 | ||
| inputBooleanInvalidHandleNullReplaceInvalid2 | ||
| inputBooleanInvalidHandleNullReplaceThrowInvalid1 | ||
| inputBooleanInvalidHandleNullReplaceThrowInvalid2 | ||
| inputBooleanInvalidHandleNullReplaceThrowUnreliable | ||
| inputBooleanInvalidHandleNullReplaceUnreliable | ||
| inputBooleanInvalidHandleNullThrowUnreliable | ||
| inputBooleanInvalidHandleNullUnreliable | ||
| inputBooleanInvalidHandleReplaceInvalid1 | ||
| inputBooleanInvalidHandleReplaceInvalid2 | ||
| inputBooleanInvalidHandleReplaceThrowInvalid1 | ||
| inputBooleanInvalidHandleReplaceThrowInvalid2 | ||
| inputBooleanInvalidHandleReplaceThrowUnreliable | ||
| inputBooleanInvalidHandleReplaceUnreliable | ||
| inputBooleanInvalidHandleThrow | ||
| inputBooleanNullHandleNullNotUnreliable | ||
| inputBooleanNullHandleNullReplaceNotUnreliable | ||
| inputBooleanNullHandleNullReplaceThrowNotUnreliable | ||
| inputBooleanNullHandleNullThrowNotUnreliable | ||
| inputBooleanNullHandleReplaceInvalid1 | ||
| inputBooleanNullHandleReplaceInvalid2 | ||
| inputBooleanNullHandleReplaceThrowInvalid1 | ||
| inputBooleanNullHandleReplaceThrowInvalid2 | ||
| inputBooleanNullHandleReplaceThrowUnreliable | ||
| inputBooleanNullHandleReplaceUnreliable | ||
| inputBooleanNullHandleThrow | ||
| inputBooleanValidNotUnreliable | ||
| inputCommonNonCsvFieldIgnored | ||
| inputDateInvalidHandleNullReplaceInvalid1 | ||
| inputDateInvalidHandleNullReplaceInvalid2 | ||
| inputDateInvalidHandleNullReplaceThrowInvalid1 | ||
| inputDateInvalidHandleNullReplaceThrowInvalid2 | ||
| inputDateInvalidHandleNullReplaceThrowUnreliable | ||
| inputDateInvalidHandleNullReplaceUnreliable | ||
| inputDateInvalidHandleNullThrowUnreliable | ||
| inputDateInvalidHandleNullUnreliable | ||
| inputDateInvalidHandleReplaceInvalid1 | ||
| inputDateInvalidHandleReplaceInvalid2 | ||
| inputDateInvalidHandleReplaceThrowInvalid1 | ||
| inputDateInvalidHandleReplaceThrowInvalid2 | ||
| inputDateInvalidHandleReplaceThrowUnreliable | ||
| inputDateInvalidHandleReplaceUnreliable | ||
| inputDateInvalidHandleThrow | ||
| inputDateNullHandleNullNotUnreliable | ||
| inputDateNullHandleNullReplaceNotUnreliable | ||
| inputDateNullHandleNullReplaceThrowNotUnreliable | ||
| inputDateNullHandleNullThrowNotUnreliable | ||
| inputDateNullHandleReplaceInvalid1 | ||
| inputDateNullHandleReplaceInvalid2 | ||
| inputDateNullHandleReplaceThrowInvalid1 | ||
| inputDateNullHandleReplaceThrowInvalid2 | ||
| inputDateNullHandleReplaceThrowUnreliable | ||
| inputDateNullHandleReplaceUnreliable | ||
| inputDateNullHandleThrow | ||
| inputDatetimeInvalidHandleNullReplaceInvalid1 | ||
| inputDatetimeInvalidHandleNullReplaceInvalid2 | ||
| inputDatetimeInvalidHandleNullReplaceThrowInvalid1 | ||
| inputDatetimeInvalidHandleNullReplaceThrowInvalid2 | ||
| inputDatetimeInvalidHandleNullReplaceThrowUnreliable | ||
| inputDatetimeInvalidHandleNullReplaceUnreliable | ||
| inputDatetimeInvalidHandleNullThrowUnreliable | ||
| inputDatetimeInvalidHandleNullUnreliable | ||
| inputDatetimeInvalidHandleReplaceInvalid1 | ||
| inputDatetimeInvalidHandleReplaceInvalid2 | ||
| inputDatetimeInvalidHandleReplaceThrowInvalid1 | ||
| inputDatetimeInvalidHandleReplaceThrowInvalid2 | ||
| inputDatetimeInvalidHandleReplaceThrowUnreliable | ||
| inputDatetimeInvalidHandleReplaceUnreliable | ||
| inputDatetimeInvalidHandleThrow | ||
| inputDatetimeNullHandleNullNotUnreliable | ||
| inputDatetimeNullHandleNullReplaceNotUnreliable | ||
| inputDatetimeNullHandleNullReplaceThrowNotUnreliable | ||
| inputDatetimeNullHandleNullThrowNotUnreliable | ||
| inputDatetimeNullHandleReplaceInvalid1 | ||
| inputDatetimeNullHandleReplaceInvalid2 | ||
| inputDatetimeNullHandleReplaceThrowInvalid1 | ||
| inputDatetimeNullHandleReplaceThrowInvalid2 | ||
| inputDatetimeNullHandleReplaceThrowUnreliable | ||
| inputDatetimeNullHandleReplaceUnreliable | ||
| inputDatetimeNullHandleThrow | ||
| inputDatetimeValidNotUnreliable | ||
| inputDateValidNotUnreliable | ||
| inputDecimalInvalidHandleNullReplaceInvalid1 | ||
| inputDecimalInvalidHandleNullReplaceInvalid2 | ||
| inputDecimalInvalidHandleNullReplaceThrowInvalid1 | ||
| inputDecimalInvalidHandleNullReplaceThrowInvalid2 | ||
| inputDecimalInvalidHandleNullReplaceThrowUnreliable | ||
| inputDecimalInvalidHandleNullReplaceUnreliable | ||
| inputDecimalInvalidHandleNullThrowUnreliable | ||
| inputDecimalInvalidHandleNullUnreliable | ||
| inputDecimalInvalidHandleReplaceInvalid1 | ||
| inputDecimalInvalidHandleReplaceInvalid2 | ||
| inputDecimalInvalidHandleReplaceThrowInvalid1 | ||
| inputDecimalInvalidHandleReplaceThrowInvalid2 | ||
| inputDecimalInvalidHandleReplaceThrowUnreliable | ||
| inputDecimalInvalidHandleReplaceUnreliable | ||
| inputDecimalInvalidHandleThrow | ||
| inputDecimalNullHandleNullNotUnreliable | ||
| inputDecimalNullHandleNullReplaceNotUnreliable | ||
| inputDecimalNullHandleNullReplaceThrowNotUnreliable | ||
| inputDecimalNullHandleNullThrowNotUnreliable | ||
| inputDecimalNullHandleReplaceInvalid1 | ||
| inputDecimalNullHandleReplaceInvalid2 | ||
| inputDecimalNullHandleReplaceThrowInvalid1 | ||
| inputDecimalNullHandleReplaceThrowInvalid2 | ||
| inputDecimalNullHandleReplaceThrowUnreliable | ||
| inputDecimalNullHandleReplaceUnreliable | ||
| inputDecimalNullHandleThrow | ||
| inputDecimalValidNotUnreliable | ||
| inputStringInvalidHandleNullReplaceThrowUnreliable | ||
| inputStringInvalidHandleNullReplaceUnreliable | ||
| inputStringInvalidHandleNullThrowUnreliable | ||
| inputStringInvalidHandleNullUnreliable | ||
| inputStringInvalidHandleReplaceInvalid1 | ||
| inputStringInvalidHandleReplaceInvalid2 | ||
| inputStringInvalidHandleReplaceThrowInvalid1 | ||
| inputStringInvalidHandleReplaceThrowInvalid2 | ||
| inputStringInvalidHandleReplaceThrowUnreliable1 | ||
| inputStringInvalidHandleReplaceThrowUnreliable2 | ||
| inputStringInvalidHandleReplaceUnreliable1 | ||
| inputStringInvalidHandleReplaceUnreliable2 | ||
| inputStringInvalidHandleThrow | ||
| inputStringNullHandleNullNotUnreliable | ||
| inputStringNullHandleNullReplaceNotUnreliable | ||
| inputStringNullHandleNullReplaceThrowNotUnreliable | ||
| inputStringNullHandleNullThrowNotUnreliable | ||
| inputStringNullHandleReplaceInvalid1 | ||
| inputStringNullHandleReplaceInvalid2 | ||
| inputStringNullHandleReplaceThrowInvalid1 | ||
| inputStringNullHandleReplaceThrowInvalid2 | ||
| inputStringNullHandleReplaceThrowUnreliable | ||
| inputStringNullHandleReplaceUnreliable | ||
| inputStringNullHandleThrow | ||
| inputStringValidNotUnreliable |
Totalt set er der udført 178 unit tests.