• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

INRIA / spoon / #18072

17 Jun 2026 09:12AM UTC coverage: 88.094% (+0.2%) from 87.865%
#18072

push

github

web-flow
fix+test: cover ImportScannerImpl.matchesTypeName and fix @throws detection (#6759)

* test: add JUnit 5 test covering DeclarationNode.toString()

Tests both the no-children and with-children branches of toString() to
ensure the qualified name appears in output and children are rendered.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test: add JUnit 5 tests for ImportScannerImpl.matchesTypeName via public API

Adds ImportScannerImplTest covering the private matchesTypeName method
through computeImports/getAllImports for @see, {@link}, @throws (simple
name and FQN), and method-parameter Javadoc tag scenarios.

Also fixes visitCtJavaDoc to include getParam() (e.g. the exception class
name in @throws tags) in the reconstructed javadoc string, so that
matchesTypeName can correctly detect type references in @throws tags.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

30544 of 34672 relevant lines covered (88.09%)

0.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.44
/src/main/java/spoon/reflect/visitor/ImportScannerImpl.java


Build SHA Not Found

The commit SHA "2213ac2faf37c11c059d1522e12ea0dd49da82aa" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc