showtime/tests/do_test

Types

pub type MetaShould(t) {
  MetaShould(equal: fn(t, t) -> Nil, not_equal: fn(t, t) -> Nil)
}

Constructors

  • MetaShould(equal: fn(t, t) -> Nil, not_equal: fn(t, t) -> Nil)
pub type Test {
  Test(meta: Meta, test_function: fn() -> Nil)
}

Constructors

  • Test(meta: Meta, test_function: fn() -> Nil)

Functions

pub fn be_error(a: Result(a, b), meta: Meta) -> Nil
pub fn be_false(a: Bool, meta: Meta) -> Nil
pub fn be_ok(a: Result(a, b), meta: Meta) -> Nil
pub fn be_true(a: Bool, meta: Meta) -> Nil
pub fn do_test(
  meta: Meta,
  test_function: fn(Meta) -> Nil,
) -> Test
pub fn equal(a: a, b: a, meta: Meta) -> Nil
pub fn fail(meta: Meta) -> Nil
pub fn not_equal(a: a, b: a, meta: Meta) -> Nil
pub fn with_meta(
  meta: Meta,
  test_function: fn(MetaShould(a)) -> Nil,
) -> Test
Search Document