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

enum TestDb

Where the data of an integration test lives (db: of cluster(...)).

Example:

oxl✓ проверяется в CI
use std.test { net }

test integ "orders are stored" with cluster(nodes: 1, roles: ["store"], db: TestDb.Builtin) as c {
  assert_eq(c.nodes, 1)
}
pub(api) enum TestDb

С версии. 1.0.0-beta

Варианты

Builtin

The built-in replicated tables in memory.

Url(str)

The database at this URL.

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

См. также