OxL Справочник OxL
РусскийEnglish

fn oxlTestCluster

The environment with cluster(nodes: n, roles: [...], db: ...) as c yields; the compiler calls it. An integ test runs on a single in-process node whatever nodes says.

Example:

oxl✓ проверяется в CI
test integ "cluster environment" with cluster(nodes: 3, roles: ["web", "store"]) as c {
  assert_eq(c.nodes, 3)
}
pub(api) fn oxlTestCluster(nodes: u32 = 1, roles: List<str> = [], db: TestDb = TestDb.Builtin) -> stream<TestCluster>

С версии. 1.0.0-beta

Параметры

ИмяТип
nodesu32 = 1
rolesList<str> = []
dbTestDb = TestDb.Builtin

Возвращает

stream<TestCluster>

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/core/testing.oxl:134

См. также