Skip to content

312 WIP Start unit test for HtmlReporter #119

312 WIP Start unit test for HtmlReporter

312 WIP Start unit test for HtmlReporter #119

GitHub Actions / Coverage succeeded Mar 21, 2024 in 0s

Code Coverage 72.16 %

This run completed at 03/21/2024 16:48:47

Details

Coverage Report: JaCoCo

  • htmlSanityCheck-gradle-plugin
Outcome Value
Code Coverage % 72.16%
✔️ Number of Lines Covered 897
❌ Number of Lines Missed 346
Total Number of Lines 1243

Details:

org/aim42/filesystem

❌ FileCollector.java

Lines Missed:

        }

org/aim42/htmlsanitycheck

❌ HtmlSanityCheckPlugin.groovy

Lines Missed:

❌ ProductVersion.java

Lines Missed:

        } catch (IOException E) {
❌ Configuration.java

Lines Missed:

❌ AllChecksRunner.java

Lines Missed:

                    performChecksForOneFile(file));
        }
    }
    }
    }
    }
    }
❌ HtmlSanityCheckTask.groovy

Lines Missed:

        }
        } else {
        }
✔️ MisconfigurationException.java

All Lines Covered!

org/aim42/htmlsanitycheck/check

❌ MissingLocalResourcesChecker.java

Lines Missed:

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

Lines Missed:

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

All Lines Covered!

❌ DuplicateIdChecker.java

Lines Missed:

    }
    }
❌ AllCheckers.java

Lines Missed:

❌ SuggestingChecker.java

Lines Missed:

❌ BrokenHttpLinksChecker.java

Lines Missed:

                }
            } catch (UnknownHostException exception) {
            }
        } catch (MalformedURLException exception) {
❌ UnknownCheckerException.java

Lines Missed:

    }
❌ ImageMapChecker.java

Lines Missed:

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

Lines Missed:

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

Lines Missed:

✔️ Checker.java

All Lines Covered!

org/aim42/net

❌ TrustAllCertificates.java

Lines Missed:

        } catch (NoSuchAlgorithmException e) {
        } catch (KeyManagementException e) {
    }

org/aim42/htmlsanitycheck/suggest

❌ Suggester.java

Lines Missed:

org/aim42/htmlsanitycheck/collect

✔️ PerRunResults.java

All Lines Covered!

❌ Finding.java

Lines Missed:

    }
    }
❌ PageResults.java
❌ SinglePageResults.java

Lines Missed:

    }
❌ CheckResults.java
❌ SingleCheckResults.java

Lines Missed:

❌ RunResults.java

net/ricecode/similarity

❌ SimilarityStrategy.java
❌ SimilarityScore.java

Lines Missed:

❌ JaroWinklerStrategy.java

Lines Missed:

    }
✔️ JaroStrategy.java

All Lines Covered!

✔️ DescendingSimilarityScoreComparator.java

All Lines Covered!

✔️ AscendingSimilarityScoreComparator.java

All Lines Covered!

❌ StringSimilarityService.java
❌ StringSimilarityServiceImpl.java

Lines Missed:

org/aim42/htmlsanitycheck/html

❌ HtmlElement.java

Lines Missed:

        return href.startsWith("#") ? href.substring(1) : href;
❌ HtmlConst.java

Lines Missed:

✔️ HtmlPage.java

All Lines Covered!

org/aim42/htmlsanitycheck/report

❌ LoggerReporter.java

Lines Missed:

    }
❌ CreateLinkUtil.java

Lines Missed:

❌ Reporter.java

Lines Missed:

    }
❌ SummarizerUtil.java

Lines Missed:

❌ ConsoleReporter.java

Lines Missed:

    }
    }
    }
    }
        }
    }
        }
    }
    }
❌ JUnitXmlReporter.java

Lines Missed:

		String name = pageResult.getPageFilePath() != null ? pageResult.getPageFilePath() :
					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) {
    }
        }
        int percentageSuccessful =
    }
    }
    }
            });
    }
  • Line #403
        } catch (IOException e) {

org/aim42/htmlsanitycheck/tools

❌ Web.java

Lines Missed:

        } catch (UnknownHostException e) {
            } catch (URISyntaxException e) {
                            (!aUri.getPath().isEmpty()) // (2)
            } catch (URISyntaxException e1) {
❌ TrustAllCertificates.java

Lines Missed:

        } catch (NoSuchAlgorithmException | KeyManagementException e) {
        }
    }
    }
    }