MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / test

Method test

src/main/java/io/reactivex/rxjava3/core/Maybe.java:6075–6082  ·  view source on GitHub ↗

Creates a TestObserver and subscribes it to this Maybe. Scheduler: test does not operate by default on a particular Scheduler. @return the new TestObserver instance

()

Source from the content-addressed store, hash-verified

6073 * @return the new {@code TestObserver} instance
6074 */
6075 @CheckReturnValue
6076 @SchedulerSupport(SchedulerSupport.NONE)
6077 @NonNull
6078 public final TestObserver<T> test() {
6079 TestObserver<T> to = new TestObserver<>();
6080 subscribe(to);
6081 return to;
6082 }
6083
6084 /**
6085 * Creates a {@link TestObserver} optionally in cancelled state, then subscribes it to this {@code Maybe}.

Callers

nothing calls this directly

Calls 2

subscribeMethod · 0.95
disposeMethod · 0.95

Tested by

no test coverage detected