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

ben-manes / caffeine / #5487
100%

Build:
DEFAULT BRANCH: master
Ran 31 May 2026 01:32AM UTC
Jobs 1
Files 78
Run time 1min
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

31 May 2026 01:15AM UTC coverage: 100.0%. Remained the same
#5487

push

github

ben-manes
Test strong-value conditional remove/replace match by equality

Conditional remove(k, v) and replace(k, old, new) match the expected value by
Objects.equals for strong values but by identity (==) for weak/soft. The
*_byIdentity tests cover the weak/soft side, but no test covered the strong side
with a distinct-but-equal instance: Int interning makes the populated values
identity-shared, so every existing conditional test passes the same instance and
the == fast path short-circuits before equals. A regression consolidating the
matcher to == would break the ConcurrentMap contract for strong values yet pass
the whole suite.

Add a strong/strong test that probes with new Int(value) (distinct but equal),
asserting the match succeeds — exercising the equals path the interned values hid.

Found by an audit of the test suite's own coverage.

4010 of 4018 branches covered (99.8%)

8205 of 8205 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5487.1 31 May 2026 01:32AM UTC 78
100.0
Source Files on build #5487
  • Tree
  • List 78
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f61027f3 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