OxL Reference

fn oxlFixtureFinish

Second pull: runs the code after yield and checks that the fixture really ends.

Example:

oxl✓ checked in CI
fixture temp() -> str {
  yield "scratch"
  // cleanup runs here, after the test body
}

test "fixture cleanup runs" with temp as name {
  assert_eq(name, "scratch")
}
pub(api) fn oxlFixtureFinish<T, E>(s: &var stream<T, E>)

Since. 1.0.0-beta

Parameters

NameType
s&var stream<T, E>

Effects

none declared (pure unless the body says otherwise)

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

See also