fn oxlFixtureValue
First pull of a fixture: the value after its setup.
Example:
// 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>) -> TSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
s | &var stream<T, E> |
Returns
T
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/testing.oxl:56