Skip to content

Instantly share code, notes, and snippets.

@djspiewak
Created October 27, 2020 18:14
Show Gist options
  • Select an option

  • Save djspiewak/7a03365762cd9e361a39d25abb3151bf to your computer and use it in GitHub Desktop.

Select an option

Save djspiewak/7a03365762cd9e361a39d25abb3151bf to your computer and use it in GitHub Desktop.
[info] DeferredJVMParallelism1Tests
[info] + Deferred — issue #380: with cooperative light async boundaries
[error] x Deferred — issue #380: with cooperative full async boundaries
[error] the value is false (DeferredJVMSpec.scala:175)
[info] + issue #380: complete doesn't block, test #2
[info] Total for specification DeferredJVMParallelism1Tests
[info] Finished in 10 seconds, 133 ms
[info] 3 examples, 1 failure, 0 error
[info] DeferredJVMParallelism2Tests
[info] + Deferred — issue #380: with cooperative light async boundaries
[info] + Deferred — issue #380: with cooperative full async boundaries
[info] + issue #380: complete doesn't block, test #2
[info] Total for specification DeferredJVMParallelism2Tests
[info] Finished in 884 ms
[info] 3 examples, 0 failure, 0 error
[info] ContSpec
[info] + get resumes
[info] + callback resumes
[error] ! get can be canceled
[error] java.util.concurrent.TimeoutException: null (Runners.scala:310)
[error] cats.effect.Runners.$anonfun$1(Runners.scala:310)
[info] + nondeterministic cancelation corner case: get running finalisers
[info] + get within onCancel - 1
[info] + get within onCancel - 2
[info] + get exclusively within onCancel
[info] + get is idempotent - 1
[info] + get is idempotent - 2
[info] Total for specification ContSpec
[info] Finished in 10 seconds, 54 ms
[info] 9 examples, 11 expectations, 0 failure, 1 error
[info] ResourceSpec
[info] Resource[IO, *]
[info] + releases resources in reverse order of acquisition
[info] + releases resources that implement AutoCloseable
[info] + liftF
[info] + liftF - interruption
[info] + liftF(fa) <-> liftK.apply(fa)
[info] + evalMap
[info] + evalMap with error fails during use
[info] + evalTap
[info] + evalTap with error fails during use
[info] + mapK
[info] + mapK should preserve ExitCode-specific behaviour
[info] + allocated produces the same value as the resource
[info] + use is stack-safe over binds
[info] + mapK is stack-safe over binds
[info] + allocate does not release until close is invoked
[info] + allocate does not release until close is invoked on mapK'd Resources
[info] + safe attempt suspended resource
[info] + parZip - releases resources in reverse order of acquisition
[info] + parZip - parallel acquisition and release
[info] + parZip - safety: lhs error during rhs interruptible region
[info] + parZip - safety: rhs error during lhs uninterruptible region
[info] + releases both resources on combineK
[info] + releases both resources on combineK when using a SemigroupK instance that discards allocated values
[info] + combineK - should behave like orElse when underlying effect does
[info] monadError laws must hold for Resource[IO, *]
[info] + monadError.ap consistent with product + map
[info] + monadError.applicative homomorphism
[info] + monadError.applicative identity
[info] + monadError.applicative interchange
[info] + monadError.applicative map
[info] + monadError.applicative unit
[info] + monadError.applicativeError adaptError pure
[info] + monadError.applicativeError adaptError raise
[info] + monadError.applicativeError attempt consistent with attemptT
[info] + monadError.applicativeError attempt fromEither consistent with pure
[info] + monadError.applicativeError handle
[info] + monadError.applicativeError handleError . raiseError left-distributes over ap
[info] + monadError.applicativeError handleError . raiseError right-distributes over ap
[info] + monadError.applicativeError handleError consistent with recover
[info] + monadError.applicativeError handleError pure
[info] + monadError.applicativeError handleErrorWith consistent with recoverWith
[info] + monadError.applicativeError handleErrorWith pure
[info] + monadError.applicativeError handleWith
[info] + monadError.applicativeError onError pure
[info] + monadError.applicativeError onError raise
[info] + monadError.applicativeError pure attempt
[info] + monadError.applicativeError raiseError attempt
[info] + monadError.applicativeError recover consistent with recoverWith
[info] + monadError.applicativeError redeem is derived from attempt and map
[info] + monadError.apply composition
[info] + monadError.covariant composition
[info] + monadError.covariant identity
[info] + monadError.flatMap associativity
[info] + monadError.flatMap consistent apply
[info] + monadError.flatMap from tailRecM consistency
[info] + monadError.invariant composition
[info] + monadError.invariant identity
[info] + monadError.map flatMap coherence
[info] + monadError.map2/map2Eval consistency
[info] + monadError.map2/product-map consistency
[info] + monadError.monad left identity
[info] + monadError.monad right identity
[info] + monadError.monadError ensure consistency
[info] + monadError.monadError ensureOr consistency
[info] + monadError.monadError left zero
[info] + monadError.monadError redeemWith is derived from attempt and flatMap
[info] + monadError.monadError rethrow attempt
[info] + monadError.monoidal left identity
[info] + monadError.monoidal right identity
[info] + monadError.mproduct consistent flatMap
[info] + monadError.productL consistent map2
[info] + monadError.productR consistent map2
[info] + monadError.semigroupal associativity
[info] + monadError.tailRecM consistent flatMap
[info] + monadError.tailRecM stack safety
[info] monoid laws must hold for Resource[IO, Int]
[info] + monoid.associative
[info] + monoid.collect0
[info] + monoid.combine all
[info] + monoid.combineAllOption
[info] + monoid.intercalateCombineAllOption
[info] + monoid.intercalateIntercalates
[info] + monoid.intercalateRepeat1
[info] + monoid.intercalateRepeat2
[info] + monoid.is id
[info] + monoid.left identity
[info] + monoid.repeat0
[info] + monoid.repeat1
[info] + monoid.repeat2
[info] + monoid.reverseCombineAllOption
[info] + monoid.reverseRepeat1
[info] + monoid.reverseRepeat2
[info] + monoid.reverseReverses
[info] + monoid.right identity
[info] semigroupK laws must hold for Resource[IO, *]
[info] + semigroupK.semigroupK associative
[info] parallel laws must hold for Resource[IO, *]
[info] + parallel.isomorphic functor
[info] + parallel.isomorphic pure
[info] + parallel.parallel round trip
[info] + parallel.sequential round trip
[info] Total for specification ResourceSpec
[info] Finished in 4 seconds, 953 ms
[info] 97 examples, 8118 expectations, 0 failure, 0 error
[info] CircularBufferQueueSpec
[info] CircularBuffer should
[info] + CircularBuffer - raise an exception when constructed with a negative capacity
[info] + CircularBuffer - raise an exception when constructed with zero capacity
[info] + CircularBuffer - return false on tryOffer when the queue is full
[info] + CircularBuffer - return None on tryTake when the queue is empty
[info] + CircularBuffer - demonstrate sequential offer and take
[info] + CircularBuffer - demonstrate cancelable take
[info] + CircularBuffer - async take
[info] + CircularBuffer mapK - raise an exception when constructed with a negative capacity
[info] + CircularBuffer mapK - raise an exception when constructed with zero capacity
[info] + CircularBuffer mapK - return false on tryOffer when the queue is full
[info] + CircularBuffer mapK - return None on tryTake when the queue is empty
[info] + CircularBuffer mapK - demonstrate sequential offer and take
[info] + CircularBuffer mapK - demonstrate cancelable take
[info] + CircularBuffer mapK - async take
[info] Total for specification CircularBufferQueueSpec
[info] Finished in 145 ms
[info] 14 examples, 16 expectations, 0 failure, 0 error
[info] IOAppSpec
[info] IOApp (jvm) should
[info] + evaluate and print hello world
[info] + pass all arguments to child
[info] + run finalizers on TERM
[info] + exit on fatal error
[info] + exit on fatal error with other unsafe runs
[info] Total for specification IOAppSpec
[info] Finished in 2 seconds, 996 ms
[info] 5 examples, 0 failure, 0 error
[info] DispatcherSpec
[info] async dispatcher should
[info] + run a synchronous IO
[info] + run an asynchronous IO
[info] + run several IOs back to back
[info] + run multiple IOs in parallel
[info] + forward cancelation onto the inner action
[info] + cancel all inner effects when canceled
[info] + raise an error on leaked runner
[info] Total for specification DispatcherSpec
[info] Finished in 157 ms
[info] 7 examples, 9 expectations, 0 failure, 0 error
[info] ConsoleSpec
[info] Console should
[info] + print to the standard output
[info] + println to the standard output
[info] + print to the standard error
[info] + println to the standard error
[info] Total for specification ConsoleSpec
[info] Finished in 75 ms
[info] 4 examples, 6 expectations, 0 failure, 0 error
[info] DefaultContSpec
[info] + get resumes
[info] + callback resumes
[error] ! get can be canceled
[error] java.util.concurrent.TimeoutException: null (Runners.scala:310)
[error] cats.effect.Runners.$anonfun$1(Runners.scala:310)
[info] + nondeterministic cancelation corner case: get running finalisers
[info] + get within onCancel - 1
[info] + get within onCancel - 2
[info] + get exclusively within onCancel
[info] + get is idempotent - 1
[info] + get is idempotent - 2
[info] Total for specification DefaultContSpec
[info] Finished in 10 seconds, 48 ms
[info] 9 examples, 11 expectations, 0 failure, 1 error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment