simplebench.enums.flag_type module๐
FlagType enums for SimpleBench.
Types of command-line flags for reporters.
- Available FlagTypes are:
BOOLEAN: Boolean flag type.
TARGET_LIST: List of output targets
INVALID: Invalid flag type. This is a testing placeholder and should not be used.
- class simplebench.enums.flag_type.FlagType(value)[source]๐
-
Types of command-line flags for reporters.
- Available FlagTypes are:
BOOLEAN: Boolean flag type.
TARGET_LIST: List of output targets
INVALID: Invalid flag type. This is a testing placeholder and should not be used.
- BOOLEAN = 'boolean'๐
Boolean flag type.
This flag type represents a simple on/off or true/false option.
Example: โverbose / โno-verbose
- INVALID = 'invalid'๐
Invalid flag type.
This is a testing placeholder and should not be used. It is included to test error handling for unsupported flag types.
- TARGET_LIST = 'target_list'๐
List of output targets
This flag type represents a list of output targets for the reporter.
This allows specifying multiple targets for the reporter to output to.
The targets are specified as a list of strings and validated against the allowed Target enum values. It support passing NO targets as well, in which case the reporter will use the default targets.
Example: โjson console filesystem callback