Test

final case class Test(systemState: Ref[Data]) extends Service with Service
trait Product
trait Equals
trait Service
trait Service
class Object
trait Matchable
class Any

Value members

Concrete methods

def clearEnv(variable: String): UIO[Unit]

Clears the mapping of environment variables.

Clears the mapping of environment variables.

def clearProperty(prop: String): UIO[Unit]

Clears the mapping of system properties.

Clears the mapping of system properties.

def env(variable: String): IO[SecurityException, Option[String]]

Returns the specified environment variable if it exists.

Returns the specified environment variable if it exists.

def envOrElse(variable: String, alt: => String): IO[SecurityException, String]

Returns the specified environment variable if it exists or else the specified fallback value.

Returns the specified environment variable if it exists or else the specified fallback value.

def envOrOption(variable: String, alt: => Option[String]): IO[SecurityException, Option[String]]

Returns the specified environment variable if it exists or else the specified optional fallback value.

Returns the specified environment variable if it exists or else the specified optional fallback value.

def property(prop: String): IO[Throwable, Option[String]]

Returns the specified system property if it exists.

Returns the specified system property if it exists.

def propertyOrElse(prop: String, alt: => String): IO[Throwable, String]

Returns the specified system property if it exists or else the specified fallback value.

Returns the specified system property if it exists or else the specified fallback value.

def propertyOrOption(prop: String, alt: => Option[String]): IO[Throwable, Option[String]]

Returns the specified system property if it exists or else the specified optional fallback value.

Returns the specified system property if it exists or else the specified optional fallback value.

def putEnv(name: String, value: String): UIO[Unit]

Adds the specified name and value to the mapping of environment variables maintained by this TestSystem.

Adds the specified name and value to the mapping of environment variables maintained by this TestSystem.

def putProperty(name: String, value: String): UIO[Unit]

Adds the specified name and value to the mapping of system properties maintained by this TestSystem.

Adds the specified name and value to the mapping of system properties maintained by this TestSystem.

def setLineSeparator(lineSep: String): UIO[Unit]

Sets the system line separator maintained by this TestSystem to the specified value.

Sets the system line separator maintained by this TestSystem to the specified value.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val envs: ZIO[Any, SecurityException, Map[String, String]]
val lineSeparator: UIO[String]

Returns the system line separator.

Returns the system line separator.

val properties: ZIO[Any, Throwable, Map[String, String]]
val save: UIO[UIO[Unit]]

Saves the TestSystem``'s current state in an effect which, when run, will restore theTestSystem` state to the saved state.

Saves the TestSystem``'s current state in an effect which, when run, will restore theTestSystem` state to the saved state.