OpenVPN 3 Core Library
Loading...
Searching...
No Matches
rc::Arbitrary< RedirectGatewayFlagsValues > Struct Reference

Template specialization for generating arbitrary RedirectGatewayFlagsValues. More...

#include <test_generators.hpp>

Static Public Member Functions

static Gen< RedirectGatewayFlagsValuesarbitrary ()
 Generates an arbitrary RedirectGatewayFlagsValues.
 

Detailed Description

Template specialization for generating arbitrary RedirectGatewayFlagsValues.

This struct specializes the Arbitrary template for the RedirectGatewayFlagsValues enum. It generates a set of flags by selecting a subset of bit positions to set.

Definition at line 406 of file test_generators.hpp.

Member Function Documentation

◆ arbitrary()

static Gen< RedirectGatewayFlagsValues > rc::Arbitrary< RedirectGatewayFlagsValues >::arbitrary ( )
inlinestatic

Generates an arbitrary RedirectGatewayFlagsValues.

This function generates an arbitrary value for RedirectGatewayFlagsValues by selecting a subset of bit positions (from 0 to number_of_flags) and setting the corresponding bits in the result.

Returns
A generator that produces RedirectGatewayFlagsValues with random sets of flags.

Definition at line 415 of file test_generators.hpp.


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