Skip to content

4.x: Unit test lambdaification 15 of N#8156

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

4.x: Unit test lambdaification 15 of N#8156
akarnokd merged 1 commit into
ReactiveX:4.xfrom
akarnokd:4xUnitTestLambda15

Conversation

@akarnokd

Copy link
Copy Markdown
Member

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

IntelliJ: Inspect -> RedundantCast, Inspect -> Anonymous type can be replaced by lambda
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.833 bits/char
Verdict: ⚠️ Consider review — entropy outside sweet spot

Changed files entropy:

docs/How-To-Use-RxJava.md: 4.903
src/jmh/java/io/reactivex/rxjava4/core/BinaryFlatMapPerf.java: 4.968
src/jmh/java/io/reactivex/rxjava4/core/CallableAsyncPerf.java: 4.898
src/jmh/java/io/reactivex/rxjava4/core/EachTypeFlatMapPerf.java: 5.034
src/jmh/java/io/reactivex/rxjava4/core/FlatMapJustPerf.java: 5.156
src/jmh/java/io/reactivex/rxjava4/core/FlattenCrossMapPerf.java: 5.124
src/jmh/java/io/reactivex/rxjava4/core/FlattenJustPerf.java: 5.128
src/jmh/java/io/reactivex/rxjava4/core/FlattenRangePerf.java: 5.134
src/jmh/java/io/reactivex/rxjava4/core/ObservableFlatMapPerf.java: 5.122
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableConcatMapCompletablePerf.java: 5.113
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableConcatMapMaybeEmptyPerf.java: 5.149
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableFlatMapCompletablePerf.java: 5.117
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableFlatMapMaybeEmptyPerf.java: 5.143
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableFlatMapMaybePerf.java: 5.137
src/jmh/java/io/reactivex/rxjava4/xmapz/FlowableFlatMapSinglePerf.java: 5.131
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableRefCountTest.java: 4.466
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipLastTest.java: 4.936
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipTest.java: 4.870
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableSkipUntilTest.java: 4.784
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableTakeLastOneTest.java: 4.754

✅ 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.72%. Comparing base (b1bd8e0) to head (4dec3eb).

Additional details and impacted files
@@             Coverage Diff              @@
##                4.x    #8156      +/-   ##
============================================
- Coverage     98.74%   98.72%   -0.03%     
  Complexity     6934     6934              
============================================
  Files           773      773              
  Lines         48990    48990              
  Branches       6586     6586              
============================================
- Hits          48375    48365      -10     
- Misses          453      456       +3     
- Partials        162      169       +7     

☔ 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 55ef9d2 into ReactiveX:4.x Jun 22, 2026
6 of 7 checks passed
@akarnokd akarnokd deleted the 4xUnitTestLambda15 branch June 22, 2026 13: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