showtime/common/test_result
Types
pub type Arity {
Num(arity: Int)
ArgList(arg_list: List(Dynamic))
}
Constructors
-
Num(arity: Int)
-
ArgList(arg_list: List(Dynamic))
pub type Exception {
ErlangException(
class: Class,
reason: Reason,
stacktrace: TraceList,
)
}
Constructors
-
ErlangException( class: Class, reason: Reason, stacktrace: TraceList, )
pub type ExtraInfo {
ErrorInfo(error_info: Map(Dynamic, Dynamic))
File(filename: String)
Line(line_no: Int)
}
Constructors
-
ErrorInfo(error_info: Map(Dynamic, Dynamic))
-
File(filename: String)
-
Line(line_no: Int)
pub type GleamErrorDetail {
Assert(
module: String,
function: String,
line_no: Int,
message: String,
value: Dynamic,
)
}
Constructors
-
Assert( module: String, function: String, line_no: Int, message: String, value: Dynamic, )
pub type IgnoreReason {
Ignore
}
Constructors
-
Ignore
pub type Reason {
AssertEqual(details: List(ReasonDetail))
GleamError(details: GleamErrorDetail)
}
Constructors
-
AssertEqual(details: List(ReasonDetail))
-
GleamError(details: GleamErrorDetail)
pub type ReasonDetail {
Module(name: String)
ReasonLine(line_no: Int)
Expression(expression: String)
Expected(value: Dynamic)
Value(value: Dynamic)
}
Constructors
-
Module(name: String)
-
ReasonLine(line_no: Int)
-
Expression(expression: String)
-
Expected(value: Dynamic)
-
Value(value: Dynamic)
pub type TestResult =
Result(TestReturn, Exception)
pub type TestReturn {
TestFunctionReturn(value: Dynamic)
Ignored(reason: IgnoreReason)
}
Constructors
-
TestFunctionReturn(value: Dynamic)
-
Ignored(reason: IgnoreReason)
pub type Trace {
Trace(
function: String,
arity: Arity,
extra_info: List(ExtraInfo),
)
TraceModule(
module: String,
function: String,
arity: Arity,
extra_info: List(ExtraInfo),
)
}
Constructors
-
Trace( function: String, arity: Arity, extra_info: List(ExtraInfo), )
-
TraceModule( module: String, function: String, arity: Arity, extra_info: List(ExtraInfo), )