Skip to content

4.x: Unit test lambdaification 14 of N#8155

Merged
akarnokd merged 1 commit into
ReactiveX:4.xfrom
akarnokd:4xUnitTestLambda14
Jun 22, 2026
Merged

4.x: Unit test lambdaification 14 of N#8155
akarnokd merged 1 commit into
ReactiveX:4.xfrom
akarnokd:4xUnitTestLambda14

Conversation

@akarnokd

Copy link
Copy Markdown
Member

Will go over the unit tests in ASCII order of the classpath and classes.

Search regexp: new\s+\w+(?:\s*<(?:[\s\w<>(\[\])?,.?]|\s*<[\s\w<>(\[\])?,.?]*>)*>)?\s*\([^)]*\)\s*\{

/* NFI */ = Not Functional Interface so break the regexp pattern

If you complain instead of proposing a PR about "why not convert to method references" you'll be banned.

Related: #8080

@akarnokd akarnokd added this to the 4.0 milestone Jun 22, 2026
@github-actions

Copy link
Copy Markdown

🐷 TruffleHog + Entropy Beauty Scan

Average entropy of changed code: 4.606 bits/char
Verdict: ✅ Mid-4 beauty detected (thoughtful human code!)

Changed files entropy:

src/main/java/io/reactivex/rxjava4/core/Flowable.java: 4.779
src/main/java/io/reactivex/rxjava4/core/Observable.java: 4.758
src/main/java/io/reactivex/rxjava4/core/Scheduler.java: 4.531
src/main/java/io/reactivex/rxjava4/core/config/ParallelSchedulerConfig.java: 4.659
src/main/java/io/reactivex/rxjava4/internal/schedulers/BlockingCurrentThreadScheduler.java: 4.271
src/main/java/io/reactivex/rxjava4/internal/schedulers/CachedScheduler.java: 4.725
src/main/java/io/reactivex/rxjava4/internal/schedulers/ComputationScheduler.java: 4.710
src/main/java/io/reactivex/rxjava4/internal/schedulers/NewThreadScheduler.java: 5.079
src/main/java/io/reactivex/rxjava4/internal/schedulers/ParallelScheduler.java: 4.246
src/main/java/io/reactivex/rxjava4/internal/schedulers/SchedulerPoolFactory.java: 4.797
src/main/java/io/reactivex/rxjava4/internal/schedulers/SharedScheduler.java: 4.316
src/main/java/io/reactivex/rxjava4/internal/schedulers/SingleScheduler.java: 4.603
src/main/java/io/reactivex/rxjava4/schedulers/BlockingScheduler.java: 4.739
src/main/java/io/reactivex/rxjava4/schedulers/Schedulers.java: 4.730
src/test/java/io/reactivex/rxjava4/core/SchedulerTest.java: 5.033
src/test/java/io/reactivex/rxjava4/internal/schedulers/BlockingSchedulerTest.java: 3.882
src/test/java/io/reactivex/rxjava4/internal/schedulers/ParallelSchedulerTest.java: 4.565
src/test/java/io/reactivex/rxjava4/internal/schedulers/SharedSchedulerTest.java: 4.485

✅ No secrets or suspicious high-entropy strings found.

Mid-4 beauty heuristic in action — powered by our entropy chats! 😊

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.74%. Comparing base (7c9661e) to head (979dc75).

Additional details and impacted files
@@             Coverage Diff              @@
##                4.x    #8155      +/-   ##
============================================
- Coverage     98.76%   98.74%   -0.03%     
+ Complexity     6939     6938       -1     
============================================
  Files           773      773              
  Lines         48990    48990              
  Branches       6586     6586              
============================================
- Hits          48387    48373      -14     
- Misses          449      455       +6     
- Partials        154      162       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@akarnokd akarnokd merged commit b1bd8e0 into ReactiveX:4.x Jun 22, 2026
6 checks passed
@akarnokd akarnokd deleted the 4xUnitTestLambda14 branch June 22, 2026 12:57
@akarnokd akarnokd added the Test label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant