Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::stateful::ConcurrentRuleParams< M > Struct Template Reference

Arguments for the ConcurrentRule constructor. More...

#include <stateful.h>

Public Attributes

std::string name
 The name of the rule.
std::vector< std::string > groups = {anonymous_group}
 The concurrency groups of the rule.
double weight = 1.0
std::function< void(TestCase &, M &)> step
 The function the rule applies.

Detailed Description

template<typename M>
struct hegel::stateful::ConcurrentRuleParams< M >

Arguments for the ConcurrentRule constructor.

{.name = "transfer",
.groups = {"bank"},
.weight = 6.0,
.step = [](hegel::TestCase& tc, Bank& bank) { ... }});
Handle to the currently-executing test case.
Definition test_case.h:46
An action that a worker can apply to a concurrent state machine.
Definition stateful.h:117
Template Parameters
MThe state-machine type that the rule acts on

Member Data Documentation

◆ weight

template<typename M>
double hegel::stateful::ConcurrentRuleParams< M >::weight = 1.0

A hint for how often to choose the rule, relative to the other rules of the current group. The engine rejects a weight that is not finite and positive.


The documentation for this struct was generated from the following file: