language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSwitchMap.java
@@ -180,12 +180,9 @@ public void cancel() { @SuppressWarnings("unchecked") void disposeInner() { - SwitchMapInnerSubscriber<T, R> a = active.get(); - if (a != CANCELLED) { - a = active.getAndSet((SwitchMapInnerSubscriber<T, R>)CANCELLED); - if (a !...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableTakeLast.java
@@ -119,8 +119,12 @@ void drain() { a.onNext(v); e++; } - if (e != 0L && r != Long.MAX_VALUE) { - r = requested.addAndGet(-e); + if (isEmpty()) { + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableWindow.java
@@ -22,8 +22,7 @@ import io.reactivex.rxjava3.internal.queue.SpscLinkedArrayQueue; import io.reactivex.rxjava3.internal.subscriptions.SubscriptionHelper; import io.reactivex.rxjava3.internal.util.BackpressureHelper; -import io.reactivex.rxjava3.plugins.RxJavaPlugins; -import io.reactivex.rxjava3.processors.*; +impor...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableZip.java
@@ -191,23 +191,12 @@ void drain() { for (int j = 0; j < n; j++) { ZipSubscriber<T, R> inner = qs[j]; if (values[j] == null) { + boolean d = inner.done; + SimpleQueue<T> q = inner.queue; + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableAmb.java
@@ -115,9 +115,8 @@ public boolean win(int index) { } return true; } - return false; } - return w == index; + return false; } @Override
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableBufferTimed.java
@@ -121,11 +121,9 @@ public void onSubscribe(Disposable d) { downstream.onSubscribe(this); - if (!cancelled) { + if (!DisposableHelper.isDisposed(timer.get())) { Disposable task = scheduler.schedulePeriodicallyDirect(this, timespan, timespan, unit)...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableCombineLatest.java
@@ -49,13 +49,19 @@ public void subscribeActual(Observer<? super R> observer) { int count = 0; if (sources == null) { sources = new ObservableSource[8]; - for (ObservableSource<? extends T> p : sourcesIterable) { - if (count == sources.length) { - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableCreate.java
@@ -159,7 +159,7 @@ public String toString() { @Override public void onNext(T t) { - if (emitter.isDisposed() || done) { + if (done || emitter.isDisposed()) { return; } if (t == null) { @@ -192,7 +192,7 @@ public void onError(Throwable...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMap.java
@@ -69,7 +69,7 @@ public void subscribeActual(Observer<? super U> t) { final AtomicThrowable errors = new AtomicThrowable(); - volatile boolean cancelled; + volatile boolean disposed; final AtomicReference<InnerObserver<?, ?>[]> observers; @@ -80,7 +80,6 @@ public void subscribeA...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMapCompletable.java
@@ -116,9 +116,7 @@ public void onError(Throwable e) { disposed = true; upstream.dispose(); set.dispose(); - if (getAndSet(0) > 0) { - errors.tryTerminateConsumer(downstream); - } + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMapCompletableCompletable.java
@@ -122,9 +122,7 @@ public void onError(Throwable e) { disposed = true; upstream.dispose(); set.dispose(); - if (getAndSet(0) > 0) { - errors.tryTerminateConsumer(downstream); - } + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMapMaybe.java
@@ -172,16 +172,15 @@ void innerSuccess(InnerObserver inner, R value) { } SpscLinkedArrayQueue<R> getOrCreateQueue() { - for (;;) { - SpscLinkedArrayQueue<R> current = queue.get(); - if (current != null) { - return current; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableFlatMapSingle.java
@@ -172,16 +172,15 @@ void innerSuccess(InnerObserver inner, R value) { } SpscLinkedArrayQueue<R> getOrCreateQueue() { - for (;;) { - SpscLinkedArrayQueue<R> current = queue.get(); - if (current != null) { - return current; - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableGroupJoin.java
@@ -319,7 +319,7 @@ else if (mode == LEFT_CLOSE) { up.onComplete(); } } - else if (mode == RIGHT_CLOSE) { + else { LeftRightEndObserver end = (LeftRightEndObserver)val; ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableIntervalRange.java
@@ -90,8 +90,10 @@ public void run() { downstream.onNext(c); if (c == end) { + if (!isDisposed()) { + downstream.onComplete(); + } DisposableHelper.dispose(this); - downstream.onCompl...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableReplay.java
@@ -846,7 +846,7 @@ void truncate() { int e = 0; for (;;) { - if (next != null && size > 1) { // never truncate the very last item just added + if (size > 1) { // never truncate the very last item just added if (size > limit) { ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableSwitchMap.java
@@ -169,12 +169,9 @@ public boolean isDisposed() { @SuppressWarnings("unchecked") void disposeInner() { - SwitchMapInnerObserver<T, R> a = active.get(); - if (a != CANCELLED) { - a = active.getAndSet((SwitchMapInnerObserver<T, R>)CANCELLED); - if (...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableTakeLast.java
@@ -77,9 +77,7 @@ public void onComplete() { } T v = poll(); if (v == null) { - if (!cancelled) { - a.onComplete(); - } + a.onComplete(); return; } ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableThrottleFirstTimed.java
@@ -21,7 +21,6 @@ import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.internal.disposables.DisposableHelper; import io.reactivex.rxjava3.observers.SerializedObserver; -import io.reactivex.rxjava3.plugins.RxJavaPlugins; public final class ObservableThrottleFirstTimed<T> extends Abstract...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/observable/ObservableToList.java
@@ -20,20 +20,13 @@ import io.reactivex.rxjava3.exceptions.Exceptions; import io.reactivex.rxjava3.functions.Supplier; import io.reactivex.rxjava3.internal.disposables.*; -import io.reactivex.rxjava3.internal.functions.Functions; import io.reactivex.rxjava3.internal.util.ExceptionHelper; public final class Obser...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelFromPublisher.java
@@ -150,10 +150,6 @@ void setupSubscribers() { final int m = subs.length; for (int i = 0; i < m; i++) { - if (cancelled) { - return; - } - subscriberCount.lazySet(i + 1); subs[i].onSubscribe(new RailSubscrip...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelJoin.java
@@ -298,18 +298,13 @@ void drainLoop() { } } - if (e != 0 && r != Long.MAX_VALUE) { - requested.addAndGet(-e); + if (e != 0) { + BackpressureHelper.produced(requested, e); } - in...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelRunOn.java
@@ -430,19 +430,14 @@ public void run() { } } - if (e != 0L && r != Long.MAX_VALUE) { - requested.addAndGet(-e); + if (e != 0L) { + BackpressureHelper.produced(requested, e); } - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/parallel/ParallelSortedJoin.java
@@ -215,48 +215,41 @@ void drain() { e++; } - if (e == r) { - if (cancelled) { - Arrays.fill(lists, null); - return; - } + if (cancelled) { + Array...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleDelayWithObservable.java
@@ -56,7 +56,7 @@ protected void subscribeActual(SingleObserver<? super T> observer) { @Override public void onSubscribe(Disposable d) { - if (DisposableHelper.set(this, d)) { + if (DisposableHelper.setOnce(this, d)) { downstream.onSubscribe(this); ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleEquals.java
@@ -74,20 +74,13 @@ public void onSuccess(T value) { @Override public void onError(Throwable e) { - for (;;) { - int state = count.get(); - if (state >= 2) { - RxJavaPlugins.onError(e); - return; - } - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleFlatMapIterableFlowable.java
@@ -154,7 +154,7 @@ void drain() { long e = 0L; if (r == Long.MAX_VALUE) { - slowPath(a, iterator); + fastPath(a, iterator); return; } @@ -213,7 +213,7 @@ void drain() { ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleInternalHelper.java
@@ -14,7 +14,6 @@ package io.reactivex.rxjava3.internal.operators.single; import java.util.*; -import java.util.concurrent.Callable; import org.reactivestreams.Publisher; @@ -31,22 +30,17 @@ private SingleInternalHelper() { throw new IllegalStateException("No instances!"); } - enum NoSuchEle...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/schedulers/ComputationScheduler.java
@@ -175,15 +175,9 @@ public void start() { @Override public void shutdown() { - for (;;) { - FixedSchedulerPool curr = pool.get(); - if (curr == NONE) { - return; - } - if (pool.compareAndSet(curr, NONE)) { - curr.shutdown(); -...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/schedulers/ExecutorScheduler.java
@@ -257,9 +257,7 @@ void runFair() { } Runnable run = q.poll(); - if (run != null) { - run.run(); - } + run.run(); // never null because of offer + increment happens first if (disposed) { q.clear();
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/schedulers/IoScheduler.java
@@ -93,7 +93,7 @@ static final class CachedWorkerPool implements Runnable { @Override public void run() { - evictExpiredWorkers(); + evictExpiredWorkers(expiringWorkerQueue, allWorkers); } ThreadWorker get() { @@ -120,7 +120,7 @@ void release(ThreadWorker th...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/schedulers/SchedulerWhen.java
@@ -187,21 +187,7 @@ public boolean isDisposed() { @Override public void dispose() { - Disposable oldState; - // no matter what the current state is the new state is going to be - Disposable newState = DISPOSED; - do { - oldState = get(); - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/schedulers/SingleScheduler.java
@@ -90,12 +90,9 @@ public void start() { @Override public void shutdown() { - ScheduledExecutorService current = executor.get(); + ScheduledExecutorService current = executor.getAndSet(SHUTDOWN); if (current != SHUTDOWN) { - current = executor.getAndSet(SHUTDOWN); - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/subscribers/FutureSubscriber.java
@@ -19,9 +19,9 @@ import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicReference; -import io.reactivex.rxjava3.annotations.NonNull; import org.reactivestreams.Subscription; +import io.reactivex.rxjava3.annotations.NonNull; import io.reactivex.rxjava3.core.FlowableSubscriber; import io.reacti...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/subscribers/InnerQueuedSubscriber.java
@@ -115,18 +115,6 @@ public void request(long n) { } } - public void requestOne() { - if (fusionMode != QueueSubscription.SYNC) { - long p = produced + 1; - if (p == limit) { - produced = 0L; - get().request(p); - } else { - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/internal/util/HalfSerializer.java
@@ -37,15 +37,18 @@ private HalfSerializer() { * @param value the value to emit * @param wip the serialization work-in-progress counter/indicator * @param errors the holder of Throwables + * @return true if the operation succeeded, false if there sequence completed */ - public static <T> ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/processors/BehaviorProcessor.java
@@ -455,16 +455,9 @@ void remove(BehaviorSubscription<T> rs) { @SuppressWarnings("unchecked") BehaviorSubscription<T>[] terminate(Object terminalValue) { - BehaviorSubscription<T>[] a = subscribers.get(); - if (a != TERMINATED) { - a = subscribers.getAndSet(TERMINATED); - ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/processors/MulticastProcessor.java
@@ -23,7 +23,7 @@ import io.reactivex.rxjava3.internal.fuseable.*; import io.reactivex.rxjava3.internal.queue.*; import io.reactivex.rxjava3.internal.subscriptions.*; -import io.reactivex.rxjava3.internal.util.ExceptionHelper; +import io.reactivex.rxjava3.internal.util.*; import io.reactivex.rxjava3.plugins.RxJavaP...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/processors/ReplayProcessor.java
@@ -1101,10 +1101,6 @@ void trim() { break; } TimedNode<T> next = h.get(); - if (next == null) { - head = h; - break; - } if (next.time > limit) { head = h;
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java
@@ -151,7 +151,7 @@ final AtomicReference<Object> value; - final AtomicReference<BehaviorDisposable<T>[]> subscribers; + final AtomicReference<BehaviorDisposable<T>[]> observers; @SuppressWarnings("rawtypes") static final BehaviorDisposable[] EMPTY = new BehaviorDisposable[0]; @@ -208,7 +208,...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/subjects/ReplaySubject.java
@@ -335,15 +335,13 @@ protected void subscribeActual(Observer<? super T> observer) { ReplayDisposable<T> rs = new ReplayDisposable<>(observer, this); observer.onSubscribe(rs); - if (!rs.cancelled) { - if (add(rs)) { - if (rs.cancelled) { - remove(r...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/main/java/io/reactivex/rxjava3/subscribers/TestSubscriber.java
@@ -179,15 +179,16 @@ public void onError(@NonNull Throwable t) { if (!checkSubscriptionOnce) { checkSubscriptionOnce = true; if (upstream.get() == null) { - errors.add(new NullPointerException("onSubscribe not called in proper order")); + errors.add(new ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/core/NotificationTest.java
@@ -42,10 +42,21 @@ public void valueOfOnCompleteIsNull() { public void notEqualsToObject() { Notification<Integer> n1 = Notification.createOnNext(0); assertNotEquals(0, n1); + assertNotEquals(n1, 0); Notification<Integer> n2 = Notification.createOnError(new TestException()); ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/functions/FunctionsTest.java
@@ -39,12 +39,12 @@ public void utilityClass() { public void hashSetCallableEnum() { // inlined TestHelper.checkEnum due to access restrictions try { - Method m = Functions.HashSetCallable.class.getMethod("values"); + Method m = Functions.HashSetSupplier.class.getMethod("val...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/fuseable/CancellableQueueFuseableTest.java
@@ -25,6 +25,16 @@ public void offer() { TestHelper.assertNoOffer(new CancellableQueueFuseable<>()); } + @Test + public void pollClear() throws Throwable { + CancellableQueueFuseable<Object> qs = new CancellableQueueFuseable<>(); + + assertNull(qs.poll()); + + qs.clear(); + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/observers/DeferredScalarDisposableTest.java
@@ -0,0 +1,35 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/observers/FutureMultiObserverTest.java
@@ -0,0 +1,46 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/observers/FutureObserverTest.java
@@ -22,11 +22,9 @@ import org.junit.*; import io.reactivex.rxjava3.core.RxJavaTest; -import io.reactivex.rxjava3.disposables.*; +import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.TestException; import io.reactivex.rxjava3.internal.functions.Functions; -import io.reactivex....
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/observers/InnerQueuedObserverTest.java
@@ -0,0 +1,27 @@ +/** + * Copyright (c) 2016-present, RxJava Contributors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unles...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableAndThenCompletableTest.java
@@ -27,7 +27,7 @@ import io.reactivex.rxjava3.schedulers.Schedulers; import io.reactivex.rxjava3.testsupport.TestHelper; -public class CompletableAndThenCompletableabTest extends RxJavaTest { +public class CompletableAndThenCompletableTest extends RxJavaTest { @Test public void andThenCompletableCompleteC...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableConcatTest.java
@@ -300,4 +300,9 @@ public void run() throws Exception { assertFalse("The second Completable was interrupted!", interrupted[0]); } } + + @Test + public void doubleOnSubscribe() { + TestHelper.<Completable>checkDoubleOnSubscribeFlowableToCompletable(f -> Completable.concat(f)); + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableDisposeOnTest.java
@@ -25,7 +25,7 @@ import io.reactivex.rxjava3.functions.Action; import io.reactivex.rxjava3.observers.TestObserver; import io.reactivex.rxjava3.plugins.RxJavaPlugins; -import io.reactivex.rxjava3.schedulers.TestScheduler; +import io.reactivex.rxjava3.schedulers.*; import io.reactivex.rxjava3.subjects.PublishSubject...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableFromActionTest.java
@@ -23,6 +23,8 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.exceptions.TestException; import io.reactivex.rxjava3.functions.Action; +import io.reactivex.rxjava3.observers.TestObserver; +import io.reactivex.rxjava3.testsupport.TestHelper; public class CompletableFromActionTest extends RxJavaT...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableFromRunnableTest.java
@@ -22,6 +22,8 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.exceptions.TestException; +import io.reactivex.rxjava3.observers.TestObserver; +import io.reactivex.rxjava3.testsupport.TestHelper; public class CompletableFromRunnableTest extends RxJavaTest { @Test @@ -137,4 +139,31 @@ publi...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeIterableTest.java
@@ -14,11 +14,14 @@ package io.reactivex.rxjava3.internal.operators.completable; import java.util.*; +import java.util.concurrent.atomic.AtomicInteger; import org.junit.Test; import io.reactivex.rxjava3.core.*; +import io.reactivex.rxjava3.disposables.CompositeDisposable; import io.reactivex.rxjava3.exceptio...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableMergeTest.java
@@ -16,6 +16,7 @@ import static org.junit.Assert.*; import java.util.*; +import java.util.concurrent.atomic.AtomicBoolean; import org.junit.Test; import org.reactivestreams.Subscriber; @@ -25,9 +26,11 @@ import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.Function; import io.react...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableAmbTest.java
@@ -25,6 +25,7 @@ import org.mockito.InOrder; import org.reactivestreams.*; +import io.reactivex.rxjava3.annotations.NonNull; import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.disposables.CompositeDisposable; import io.reactivex.rxjava3.exceptions.TestException; @@ -660,4 +661,34 @@ public void sub...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableBufferTest.java
@@ -34,7 +34,7 @@ import io.reactivex.rxjava3.internal.operators.flowable.FlowableBufferTimed.*; import io.reactivex.rxjava3.internal.subscriptions.BooleanSubscription; import io.reactivex.rxjava3.plugins.RxJavaPlugins; -import io.reactivex.rxjava3.processors.PublishProcessor; +import io.reactivex.rxjava3.processors...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableCacheTest.java
@@ -511,4 +511,18 @@ public void backpressure() { .requestMore(3) .assertResult(1, 2, 3, 4, 5); } + + @Test + public void addRemoveRace() { + for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) { + Flowable<Object> f = Flowable.never().cache(); + + TestSubsc...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableCombineLatestTest.java
@@ -32,6 +32,7 @@ import io.reactivex.rxjava3.internal.functions.Functions; import io.reactivex.rxjava3.internal.fuseable.QueueFuseable; import io.reactivex.rxjava3.internal.operators.flowable.FlowableZipTest.ArgsToString; +import io.reactivex.rxjava3.internal.subscriptions.BooleanSubscription; import io.reactivex....
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapEagerTest.java
@@ -1395,4 +1395,40 @@ public void publisherDelayErrorMaxConcurrency() { .test() .assertFailure(TestException.class, 1, 2, 3, 4, 5); } + + @Test + public void innerSyncFused() { + Flowable.just(1) + .hide() + .concatMapEagerDelayError(v -> Flowable.range(1, 10), true, 1...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapSchedulerTest.java
@@ -18,17 +18,18 @@ import java.lang.reflect.Method; import java.util.*; import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.*; import org.junit.Test; import org.reactivestreams.*; +import io.reactivex.rxjava3.annotations.NonNull; import io.rea...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatMapTest.java
@@ -25,6 +25,7 @@ import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.*; import io.reactivex.rxjava3.internal.operators.flowable.FlowableConcatMap.WeakScalarSubscription; +import io.reactivex.rxjava3.processors.UnicastProcessor; import io.reactivex.rxjava3.schedulers.Schedulers; import ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableConcatTest.java
@@ -17,6 +17,7 @@ import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; +import java.io.IOException; import java.lang.reflect.Method; import java.util.*; import java.util.concurrent.*; @@ -27,7 +28,7 @@ import org.reactivestreams.*; import io.reactivex.rxjava3.core.*; -import io....
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableCreateTest.java
@@ -17,16 +17,18 @@ import java.io.IOException; import java.util.*; +import java.util.concurrent.atomic.AtomicReference; import org.junit.Test; import org.reactivestreams.*; import io.reactivex.rxjava3.core.*; -import io.reactivex.rxjava3.disposables.*; +import io.reactivex.rxjava3.disposables.Disposable; i...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableDelaySubscriptionOtherTest.java
@@ -343,4 +343,19 @@ public void subscribe(FlowableEmitter<Boolean> emitter) throws Exception { exec.shutdown(); } } + + @Test + public void doubleOnSubscribeMain() { + TestHelper.checkDoubleOnSubscribeFlowable(f -> f.delaySubscription(Flowable.empty())); + } + + @Test + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableDematerializeTest.java
@@ -223,7 +223,7 @@ protected void subscribeActual(Subscriber<? super Notification<Object>> subscrib } @Test - public void nonNotificationInstanceAfterDispose() { + public void notificationInstanceAfterDispose() { new Flowable<Notification<Object>>() { @Override prot...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableDoFinallyTest.java
@@ -208,7 +208,7 @@ public void syncFusedConditional() { Flowable.range(1, 5) .doFinally(this) - .filter(Functions.alwaysTrue()) + .compose(TestHelper.conditional()) .subscribe(ts); ts.assertFusionMode(QueueFuseable.SYNC) @@ -237,7 +237,7 @@ public void nonFusedCond...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapCompletableTest.java
@@ -16,15 +16,15 @@ import static org.junit.Assert.*; import java.util.List; -import java.util.concurrent.TimeUnit; +import java.util.concurrent.*; import org.junit.Test; import org.reactivestreams.Subscription; import io.reactivex.rxjava3.core.*; -import io.reactivex.rxjava3.disposables.*; +import io.reacti...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapMaybeTest.java
@@ -22,14 +22,15 @@ import org.reactivestreams.Subscriber; import io.reactivex.rxjava3.core.*; -import io.reactivex.rxjava3.disposables.*; +import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.Function; import io.reactivex.rxjava3.int...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapSingleTest.java
@@ -22,14 +22,15 @@ import org.reactivestreams.Subscriber; import io.reactivex.rxjava3.core.*; -import io.reactivex.rxjava3.disposables.*; +import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.functions.Function; import io.reactivex.rxjava3.int...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapTest.java
@@ -17,19 +17,22 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; +import java.io.IOException; import java.util.*; import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.*; import org.junit.*; import org.reac...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableForEachTest.java
@@ -22,6 +22,7 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.exceptions.TestException; import io.reactivex.rxjava3.functions.*; +import io.reactivex.rxjava3.testsupport.TestHelper; public class FlowableForEachTest extends RxJavaTest { @@ -72,4 +73,11 @@ public void accept(Throwable e) throw...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFromCompletableTest.java
@@ -24,7 +24,7 @@ import io.reactivex.rxjava3.core.*; import io.reactivex.rxjava3.functions.*; -import io.reactivex.rxjava3.internal.fuseable.QueueFuseable; +import io.reactivex.rxjava3.internal.fuseable.*; import io.reactivex.rxjava3.plugins.RxJavaPlugins; import io.reactivex.rxjava3.schedulers.Schedulers; impo...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFromIterableTest.java
@@ -19,12 +19,13 @@ import java.util.*; import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.*; import org.junit.Test; import org.mockito.Mockito; import org.reactivestreams.*; +import io.reactivex.rxjava3.annotations.NonNull; import io.reacti...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGenerateTest.java
@@ -282,4 +282,17 @@ public void accept(Emitter<Object> e) throws Exception { .test(1) .assertResult(); } + + @Test + public void onNextAfterOnComplete() { + Flowable.generate(new Consumer<Emitter<Object>>() { + @Override + public void accept(Emitter<Object> e) ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupByTest.java
@@ -45,6 +45,15 @@ public class FlowableGroupByTest extends RxJavaTest { + static Function<GroupedFlowable<Integer, Integer>, Flowable<Integer>> FLATTEN_INTEGER = new Function<GroupedFlowable<Integer, Integer>, Flowable<Integer>>() { + + @Override + public Flowable<Integer> apply(GroupedFlowable<I...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupJoinTest.java
@@ -31,7 +31,7 @@ import io.reactivex.rxjava3.internal.functions.Functions; import io.reactivex.rxjava3.internal.operators.flowable.FlowableGroupJoin.*; import io.reactivex.rxjava3.plugins.RxJavaPlugins; -import io.reactivex.rxjava3.processors.PublishProcessor; +import io.reactivex.rxjava3.processors.*; import io.r...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableIntervalRangeTest.java
@@ -118,4 +118,12 @@ public void cancel() { .test() .assertResult(0L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L); } + + @Test + public void takeSameAsRange() { + Flowable.intervalRange(0, 2, 1, 1, TimeUnit.MILLISECONDS, Schedulers.trampoline()) + .take(2) + .test() + .a...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableJoinTest.java
@@ -487,4 +487,35 @@ public Object apply(Integer a, Integer b) throws Exception { ts.assertFailure(MissingBackpressureException.class); } + + @Test + public void badRequest() { + PublishProcessor<Integer> pp1 = PublishProcessor.create(); + PublishProcessor<Integer> pp2 = PublishProce...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableMergeWithMaybeTest.java
@@ -28,7 +28,7 @@ import io.reactivex.rxjava3.internal.subscriptions.BooleanSubscription; import io.reactivex.rxjava3.plugins.RxJavaPlugins; import io.reactivex.rxjava3.processors.PublishProcessor; -import io.reactivex.rxjava3.subjects.MaybeSubject; +import io.reactivex.rxjava3.subjects.*; import io.reactivex.rxjav...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableMergeWithSingleTest.java
@@ -444,4 +444,22 @@ public Flowable<Integer> apply(Flowable<Integer> upstream) { } }); } + + @Test + public void drainMoreWorkBeforeCancel() { + SingleSubject<Integer> ss = SingleSubject.create(); + + TestSubscriber<Integer> ts = new TestSubscriber<>(); + + Flowabl...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableObserveOnTest.java
@@ -1154,6 +1154,16 @@ public Flowable<Object> apply(Flowable<Object> f) throws Exception { }); } + @Test + public void doubleOnSubscribeConditional() { + TestHelper.checkDoubleOnSubscribeFlowable(new Function<Flowable<Object>, Flowable<Object>>() { + @Override + publi...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureBufferStrategyTest.java
@@ -206,4 +206,23 @@ public void justTake() { .test() .assertResult(1); } + + @Test + public void overflowNullAction() { + Flowable.range(1, 5) + .onBackpressureBuffer(1, null, BackpressureOverflowStrategy.DROP_OLDEST) + .test(0L) + .assertEmpty(); + } + + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureBufferTest.java
@@ -340,4 +340,14 @@ public void fusedNoConcurrentCleanDueToCancel() { } } } + + @Test + public void doubleOnSubscribe() { + TestHelper.checkDoubleOnSubscribeFlowable(f -> f.onBackpressureBuffer()); + } + + @Test + public void badRequest() { + TestHelper.assertBad...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowablePublishTest.java
@@ -1697,4 +1697,83 @@ public void disposeResets() { ts.assertValuesOnly(1); } + + @Test(expected = TestException.class) + public void connectDisposeCrash() { + ConnectableFlowable<Object> cf = Flowable.never().publish(); + + cf.connect(); + + cf.connect(d -> { throw new Test...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableRangeLongTest.java
@@ -539,4 +539,44 @@ public boolean test(Long v) throws Exception { ts.assertResult(2L, 4L); } + + @Test + public void slowPathCancelBeforeComplete() { + Flowable.rangeLong(1, 2) + .take(2) + .test() + .assertResult(1L, 2L); + } + + @Test + public void conditio...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableRangeTest.java
@@ -590,4 +590,28 @@ public void onNext(Integer t) { ts.assertResult(1, 2); } + + @Test + public void slowPathCancelBeforeComplete() { + Flowable.range(1, 2) + .take(2) + .test() + .assertResult(1, 2); + } + + @Test + public void conditionalFastPatchCancelBefor...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableReduceTest.java
@@ -530,4 +530,9 @@ public Integer apply(Integer a, Integer b) throws Exception { RxJavaPlugins.reset(); } } + + @Test + public void doubleOnSubscribeFlowable() { + TestHelper.checkDoubleOnSubscribeFlowable(f -> f.reduce((a, b) -> a).toFlowable()); + } }
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableRefCountTest.java
@@ -45,7 +45,25 @@ public class FlowableRefCountTest extends RxJavaTest { @Test - public void refCountAsync() { + public void refCountAsync() throws InterruptedException { + // Flaky + for (int i = 0; i < 10; i++) { + try { + refCountAsyncActual(); + ...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableReplayEagerTruncateTest.java
@@ -732,7 +732,14 @@ public boolean isDisposed() { @Test public void boundedReplayBuffer() { - BoundedReplayBuffer<Integer> buf = new BoundedReplayBuffer<>(true); + BoundedReplayBuffer<Integer> buf = new BoundedReplayBuffer<Integer>(true) { + private static final long serialVersionU...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableReplayTest.java
@@ -17,6 +17,7 @@ import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.*; +import java.io.IOException; import java.lang.management.*; import java.util.*; import java.util.concurrent.*; @@ -37,13 +38,15 @@ import io.reactivex.rxjava3.internal.fuseable.HasUpstreamPublisher; import io.r...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSampleTest.java
@@ -481,4 +481,10 @@ public void badRequest() { TestHelper.assertBadRequestReported(PublishProcessor.create() .sample(PublishProcessor.create())); } + + @Test + public void badRequestTimed() { + TestHelper.assertBadRequestReported(PublishProcessor.create() + .s...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableScalarXMapTest.java
@@ -243,4 +243,12 @@ public void cancelled() { assertTrue(scalar.isCancelled()); } + + @Test + public void mapToNonScalar() { + Flowable.fromCallable(() -> 1) + .concatMap(v -> Flowable.range(1, 5)) + .test() + .assertResult(1, 2, 3, 4, 5); + } }
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableScanTest.java
@@ -676,4 +676,27 @@ public Integer apply(Integer a, Integer b) throws Exception { } } } + + @Test + public void badRequest() { + TestHelper.assertBadRequestReported(Flowable.<Integer>never().scanWith(() -> 1, (a, b) -> a + b)); + } + + @Test + public void drainMoreWork(...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSequenceEqualTest.java
@@ -591,4 +591,26 @@ public Flowable<Boolean> apply(Flowable<Integer> upstream) { } }); } + + @Test + public void fusionRejected() { + Flowable.sequenceEqual(TestHelper.rejectFlowableFusion(), Flowable.never()) + .test() + .assertEmpty(); + } + + @Test + pu...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSingleTest.java
@@ -805,4 +805,9 @@ public void singleOrError() { .test() .assertFailure(NoSuchElementException.class); } + + @Test + public void dispose() { + TestHelper.checkDisposed(PublishProcessor.create().single(1)); + } }
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSkipLastTimedTest.java
@@ -250,4 +250,27 @@ public void observeOn() { .assertComplete() .assertNoErrors(); } + + @Test + public void badRequest() { + TestHelper.assertBadRequestReported(Flowable.never().skipLast(1, TimeUnit.MINUTES)); + } + + @Test + public void delayErrorMoreWork() { + Pub...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSubscribeOnTest.java
@@ -27,6 +27,7 @@ import io.reactivex.rxjava3.disposables.Disposable; import io.reactivex.rxjava3.internal.functions.Functions; import io.reactivex.rxjava3.internal.operators.flowable.FlowableSubscribeOn.SubscribeOnSubscriber; +import io.reactivex.rxjava3.internal.schedulers.ImmediateThinScheduler; import io.reacti...
true
Other
ReactiveX
RxJava
b3ad0752de398f4536bb88a7b1c77b0b9fbecb87.json
3.x: Add missing coverage, fix unused/inconsistent ops (#6901) * 3.x: Add missing coverage, fix unused/inconsistent ops * More coverage improvements and cleanup * Some more coverage * Observable coverage and cleanup * Improve Flowable internals and coverage * More Flowable operator coverage and fixes ...
src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSwitchTest.java
@@ -32,7 +32,7 @@ import io.reactivex.rxjava3.internal.subscriptions.BooleanSubscription; import io.reactivex.rxjava3.internal.util.ExceptionHelper; import io.reactivex.rxjava3.plugins.RxJavaPlugins; -import io.reactivex.rxjava3.processors.PublishProcessor; +import io.reactivex.rxjava3.processors.*; import io.react...
true