#include <bsls_fuzztestpreconditionexception.h>
This class is an implementation detail of the bsls fuzz testing framework and should not be used directly in user code. It implements an immutable mechanism to communicate to a test-case handler information about the context of a precondition that fails.
See bsls_fuzztestpreconditionexception
◆ FuzzTestPreconditionException()
| BSLS_KEYWORD_CONSTEXPR bsls::FuzzTestPreconditionException::FuzzTestPreconditionException |
( |
const char * |
expression, |
|
|
const char * |
filename, |
|
|
int |
lineNumber, |
|
|
const char * |
level = "UNKNOWN", |
|
|
const bool |
isReview = false |
|
) |
| |
|
inlineexplicit |
Create a FuzzTestPreconditionException object with the specified expression, filename, lineNumber, level, and isReview.
- Precondition
- The behavior is undefined unless
0 < line and all of expression, filename, and level point to valid null-terminated character strings that will remain unmodified for the lifetime of this object (e.g., string literals).
◆ expression()
| const char * bsls::FuzzTestPreconditionException::expression |
( |
| ) |
const |
|
inline |
Return a string containing the program source of the assertion that has failed.
◆ filename()
| const char * bsls::FuzzTestPreconditionException::filename |
( |
| ) |
const |
|
inline |
Return a string containing the filename of the source file containing the assertion that has failed.
◆ isReview()
| bool bsls::FuzzTestPreconditionException::isReview |
( |
| ) |
const |
|
inline |
Return a flag indicating if the failure is a review.
◆ level()
| const char * bsls::FuzzTestPreconditionException::level |
( |
| ) |
const |
|
inline |
Return a string containing a representation of the level of assertion or review macro that failed.
◆ lineNumber()
| int bsls::FuzzTestPreconditionException::lineNumber |
( |
| ) |
const |
|
inline |
Return the number of the line within the file filename containing the assertion that failed.
The documentation for this class was generated from the following file: