DD2480-2022-group-7 / Java

All Algorithms implemented in Java
MIT License
0 stars 0 forks source link

Method CRCAlgorithm::divideMessageWithP #1

Open samuelsoder opened 2 years ago

samuelsoder commented 2 years ago

The implementation of the Cyclic Redundancy Check algorithm in src/main/java/com/thealgorithms/others/CRCAlgorithm.java has reported cyclomatic complexity 18 by lizard.

Part 1 steps:

Part 2 steps:

tjog commented 2 years ago

Previous branch coverage was 0% with no test files or main driver. The commit https://github.com/DD2480-2022-group-7/Java/commit/20e2b1ecec424a6f01c19b1fbd1bd956c222c84f bumps this to 88% by adding two tests.

Coverage report by JaCoCo after commit https://github.com/DD2480-2022-group-7/Java/commit/20e2b1ecec424a6f01c19b1fbd1bd956c222c84f :

Class overview of CRCAlgorithm ![image](https://user-images.githubusercontent.com/28024277/155349778-9cf9ef72-7198-4201-9097-cd26e7566ddb.png)
Method divideMessageWithP ![image](https://user-images.githubusercontent.com/28024277/155349247-ca36fc47-940a-4a0f-9880-fb5e7d95d26b.png)