Files
scylladb/tests
Botond Dénes d00cb4916c tests: introduce random_schema
random_schema is a utility class that provides methods for generating
random schemas as well as generating data (mutations) for them. The aim
is to make using random schemas in tests as simple and convenient as
is using `simple_schema`. For this reason the interface of
`random_schema` follows closely that of `simple_schema` to the extent
that it makes sense. An important difference is that `random_schema`
relies on `data_model` to actually build mutations. So all its
mutation-related operations work with `data_model::mutation_descrition`
instead of actual `mutation` objects. Once the user arrived at the
desired mutation description they can generate an actual mutation via
`data_model::mutation_description::build()`.

In addition to the `random_schema` class, the `random_schema.hh` header
exposes the generic utility classes for generating types and values
that it internally uses.

random_schema is fully deterministic. Using the same seed and the same
set of operations is guaranteed to result in generating the same schema
and data.
2019-06-25 12:01:33 +03:00
..
2019-02-07 20:18:14 +02:00
2019-04-28 15:50:12 +02:00
2019-02-07 20:18:14 +02:00
2019-06-12 13:14:53 +03:00
2019-02-07 20:18:14 +02:00
2019-05-07 10:00:58 +03:00
2019-05-07 10:00:58 +03:00
2019-03-28 14:21:10 +02:00
2019-03-28 14:21:10 +02:00
2019-05-07 10:00:58 +03:00