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:
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
Параметры
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/testing.oxl:134