Skip to content

WIP 318 Make HSC CLI type safe #172

WIP 318 Make HSC CLI type safe

WIP 318 Make HSC CLI type safe #172

GitHub Actions / Coverage succeeded Sep 18, 2024 in 0s

Code Coverage 92.07 %

This run completed at 09/18/2024 15:15:21

Details

Coverage Report: JaCoCo

  • htmlSanityCheck
Outcome Value
Code Coverage % 92.07%
✔️ Number of Lines Covered 1208
❌ Number of Lines Missed 104
Total Number of Lines 1312

Details:

org/aim42/htmlsanitycheck/gradle

✔️ HtmlSanityCheckPlugin.groovy

All Lines Covered!

✔️ HtmlSanityCheckTask.groovy

All Lines Covered!

org/aim42/htmlsanitycheck/cli

❌ HscCommand.groovy

Lines Missed:

                        break
                return

org/aim42/filesystem

❌ FileCollector.java

Lines Missed:

        }

org/aim42/htmlsanitycheck

❌ Configuration.java

Lines Missed:

✔️ AllChecksRunner.java

All Lines Covered!

✔️ MisconfigurationException.java

All Lines Covered!

❌ ProductInformation.java

Lines Missed:

        } catch (IOException E) {

org/aim42/htmlsanitycheck/check

✔️ MissingAltInImageTagsChecker.java

All Lines Covered!

❌ MissingLocalResourcesChecker.java

Lines Missed:

        } catch (URISyntaxException e) {
            return;
❌ BrokenHttpLinksChecker.java

Lines Missed:

        } catch (MalformedURLException exception) {
            }
        } catch (UnknownHostException exception) {
        }
✔️ UnknownCheckerException.java

All Lines Covered!

❌ ImageMapChecker.java

Lines Missed:

        String linkTarget = (href.startsWith("#")) ? href.substring(1) : href;
❌ CheckerCreator.java

Lines Missed:

✔️ Checker.java

All Lines Covered!

❌ MissingImageFilesChecker.java

Lines Missed:

        } catch (UnsupportedEncodingException e) {
✔️ DuplicateIdChecker.java

All Lines Covered!

❌ AllCheckers.java

Lines Missed:

❌ SuggestingChecker.java

Lines Missed:

❌ BrokenCrossReferencesChecker.java

Lines Missed:

        String linkTarget = (href.startsWith("#")) ? href.substring(1) : href;
        } catch (UnsupportedEncodingException e) {

org/aim42/net

❌ TrustAllCertificates.java

Lines Missed:

    }
        catch (NoSuchAlgorithmException | KeyManagementException e)

org/aim42/htmlsanitycheck/suggest

❌ Suggester.java

Lines Missed:

org/aim42/htmlsanitycheck/collect

❌ PageResults.java
❌ SingleCheckResults.java

Lines Missed:

✔️ PerRunResults.java

All Lines Covered!

❌ Finding.java

Lines Missed:

    }
    }
✔️ SinglePageResults.java

All Lines Covered!

❌ CheckResults.java
❌ RunResults.java

net/ricecode/similarity

❌ SimilarityStrategy.java
❌ SimilarityScore.java

Lines Missed:

❌ JaroWinklerStrategy.java

Lines Missed:

    }
✔️ JaroStrategy.java

All Lines Covered!

❌ StringSimilarityService.java
✔️ DescendingSimilarityScoreComparator.java

All Lines Covered!

✔️ AscendingSimilarityScoreComparator.java

All Lines Covered!

❌ StringSimilarityServiceImpl.java

Lines Missed:

org/aim42/htmlsanitycheck/html

❌ HtmlConst.java

Lines Missed:

❌ HtmlElement.java

Lines Missed:

        return href.startsWith("#") ? href.substring(1) : href;
✔️ HtmlPage.java

All Lines Covered!

org/aim42/htmlsanitycheck/report

✔️ LoggerReporter.java

All Lines Covered!

✔️ Reporter.java

All Lines Covered!

❌ JUnitXmlReporter.java

Lines Missed:

                    writer.writeCharacters(finding.getSuggestions() != null ? String.join(", ", finding.getSuggestions()) : "");
        } catch (IOException | XMLStreamException e) {
❌ HtmlReporter.java

Lines Missed:

        } catch (IOException e) {
        } catch (IOException e) {
        } catch (final IOException e) {
            } catch (IOException e) {
  • Line #405
        } catch (IOException e) {
❌ CreateLinkUtil.java

Lines Missed:

❌ SummarizerUtil.java

Lines Missed:

✔️ ConsoleReporter.java

All Lines Covered!

org/aim42/htmlsanitycheck/tools

✔️ InvalidUriSyntaxException.java

All Lines Covered!

✔️ Web.java

All Lines Covered!

                            (!aUri.getPath().isEmpty()) // (2)