mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
test/lib/random_schema: add random_schema(schema_ptr) constructor
Allow using the convenient random data generation facilities, for any schema.
This commit is contained in:
@@ -178,6 +178,12 @@ public:
|
||||
/// make sure to honor this guarantee.
|
||||
random_schema(uint32_t seed, random_schema_specification& spec);
|
||||
|
||||
/// Create random schema object from an existing schema.
|
||||
///
|
||||
/// Allows using random data generation facilities on an existing schema.
|
||||
random_schema(schema_ptr schema) : _schema(std::move(schema)) {
|
||||
}
|
||||
|
||||
schema_ptr schema() const {
|
||||
return _schema;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user