cats.effect.kernel.testkit

Members list

Concise view

Type members

Classlikes

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait ApplicativeGenerators[F[_]] extends Generators1[F]

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
trait ClockGenerators[F[_]] extends Generators1[F]

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source:
freeEval.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object freeEval.type

Attributes

Source:
FreeSyncGenerators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait GenK[F[_]] extends Serializable

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
trait GenSpawnGenerators[F[_], E] extends MonadCancelGenerators[F, E]

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait GenTemporalGenerators[F[_], E] extends GenSpawnGenerators[F, E] with ClockGenerators[F]

Attributes

Source:
Generators.scala
Graph
Supertypes
trait GenSpawnGenerators[F, E]
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait Generators1[F[_]] extends Serializable

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait MonadCancelGenerators[F[_], E] extends MonadErrorGenerators[F, E]

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object OutcomeGenerators.type

Attributes

Companion:
trait
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
PureConcGenerators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Generators.scala
Graph
Supertypes
trait Generators1[F]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SyncTypeGenerators.type

Attributes

Companion:
trait
Source:
Generators.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class TestContext extends ExecutionContext

A scala.concurrent.ExecutionContext implementation that can simulate async boundaries and time passage, useful for law testing purposes. This is intended primarily for datatype implementors. Most end-users will be better served by the cats.effect.testkit.TestControl utility, rather than using TestContext directly.

A scala.concurrent.ExecutionContext implementation that can simulate async boundaries and time passage, useful for law testing purposes. This is intended primarily for datatype implementors. Most end-users will be better served by the cats.effect.testkit.TestControl utility, rather than using TestContext directly.

Usage for simulating an ExecutionContext):

 implicit val ec = TestContext()

 ec.execute(new Runnable { def run() = println("task1") })

 ex.execute(new Runnable {
   def run() = {
     println("outer")

     ec.execute(new Runnable {
       def run() = println("inner")
     })
   }
 })

 // Nothing executes until `tick` gets called
 ec.tick()

 // Testing the resulting state
 assert(ec.state.tasks.isEmpty)
 assert(ec.state.lastReportedFailure == None)

Attributes

Companion:
object
Source:
TestContext.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
class
Source:
TestContext.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class TestException(i: Int) extends Exception

Attributes

Source:
FreeSyncGenerators.scala
Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Source:
TestInstances.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object freeEval extends FreeSyncEq

Attributes

Source:
freeEval.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object pure

Attributes

Source:
pure.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
pure.type