OxL Reference

fn oxlFixtureValue

First pull of a fixture: the value after its setup.

Example:

oxl✓ checked in CI
// a fixture is a generator: setup, `yield` the value, cleanup
fixture counter() -> i64 {
  yield 41
}

test "uses a fixture" with counter as n {
  assert_eq(n + 1, 42)
}
pub(api) fn oxlFixtureValue<T, E>(s: &var stream<T, E>) -> T

Since. 1.0.0-beta

Parameters

NameType
s&var stream<T, E>

Returns

T

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/testing.oxl:56

See also