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

aspectran / aspectran / #4659
44%

Build:
DEFAULT BRANCH: master
Ran 16 Oct 2025 06:40AM UTC
Jobs 1
Files 989
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Oct 2025 06:25AM UTC coverage: 36.302% (-0.02%) from 36.323%
#4659

push

github

topframe
refactor(shell): Improve isInteractive logic with caching and clear separation

Refactor the interactive mode detection logic in the shell console to improve performance and maintainability.

Previously, the `isInteractive()` method performed checks every time it was called. This change introduces a caching mechanism in `AbstractShellConsole` to store the result after the first invocation, avoiding redundant computations.

The logic has been restructured for better separation of concerns:
- `AbstractShellConsole` now handles caching and provides a base `determineInteractive()` method for common checks (e.g., system properties or environment variables for IDEs).
- Subclasses (`DefaultShellConsole` and `JLineShellConsole`) override `determineInteractive()` to add their implementation-specific checks after calling the super method.

 Additionally, Javadoc comments for these methods have been improved to clearly document the new structure and the role of each class.

0 of 29 new or added lines in 5 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

15032 of 41408 relevant lines covered (36.3%)

0.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
14.29
-0.32% shell-jline/src/main/java/com/aspectran/shell/jline/console/JLineShellConsole.java
3
0.0
0.0% shell/src/main/java/com/aspectran/shell/service/DefaultShellServiceBuilder.java
4
35.04
-0.92% shell-jline/src/main/java/com/aspectran/shell/jline/console/JLineTerminal.java
9
11.83
-1.11% shell/src/main/java/com/aspectran/shell/console/DefaultShellConsole.java
11
5.38
-0.72% shell/src/main/java/com/aspectran/shell/console/AbstractShellConsole.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
14.29
-0.32% shell-jline/src/main/java/com/aspectran/shell/jline/console/JLineShellConsole.java
1
0.0
0.0% shell/src/main/java/com/aspectran/shell/service/DefaultShellServiceBuilder.java
Jobs
ID Job ID Ran Files Coverage
1 #4659.1 16 Oct 2025 06:40AM UTC 989
36.3
Source Files on build #4659
  • Tree
  • List 989
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1f11fab9 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc