object TestSystem extends Serializable
- Alphabetic
- By Inheritance
- TestSystem
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
Data(properties: Map[String, String] = Map.empty, envs: Map[String, String] = Map.empty, lineSeparator: String = "\n") extends Product with Serializable
The state of the
TestSystem
. - final case class Test(systemState: Ref[Data]) extends System with TestSystem with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
DefaultData: Data
The default initial state of the
TestSystem
with no environment variable or system property mappings and the system line separator set to the new line character. - val any: ZLayer[TestSystem, Nothing, TestSystem]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clearEnv(variable: ⇒ String)(implicit trace: ZTraceElement): URIO[TestSystem, Unit]
Accesses a
TestSystem
instance in the environment and clears the mapping of environment variables. -
def
clearProperty(prop: ⇒ String)(implicit trace: ZTraceElement): URIO[TestSystem, Unit]
Accesses a
TestSystem
instance in the environment and clears the mapping of system properties. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val default: Layer[Nothing, TestSystem]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
live(data: Data): Layer[Nothing, TestSystem]
Constructs a new
TestSystem
with the specified initial state.Constructs a new
TestSystem
with the specified initial state. This can be useful for providing the required environment to an effect that requires aConsole
, such as withZIO#provide
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
putEnv(name: ⇒ String, value: ⇒ String)(implicit trace: ZTraceElement): URIO[TestSystem, Unit]
Accesses a
TestSystem
instance in the environment and adds the specified name and value to the mapping of environment variables. -
def
putProperty(name: ⇒ String, value: ⇒ String)(implicit trace: ZTraceElement): URIO[TestSystem, Unit]
Accesses a
TestSystem
instance in the environment and adds the specified name and value to the mapping of system properties. -
def
save(implicit trace: ZTraceElement): ZIO[TestSystem, Nothing, UIO[Unit]]
Accesses a
TestSystem
instance in the environment and saves the system state in an effect which, when run, will restore theTestSystem
to the saved state -
def
setLineSeparator(lineSep: ⇒ String)(implicit trace: ZTraceElement): URIO[TestSystem, Unit]
Accesses a
TestSystem
instance in the environment and sets the line separator to the specified value. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()