|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
Query assertion helpers. More...
Functions | |
| bool | has_rows (const core::database_result &result, size_t expected) |
| Check if result contains expected number of rows. | |
| bool | is_empty (const core::database_result &result) |
| Check if result is empty. | |
| template<typename T > | |
| bool | contains_field_value (const core::database_result &result, const std::string &field, const T &value) |
| Check if result contains a row with specific field value. | |
| template<typename T > | |
| bool | is_success (const kcenon::common::Result< T > &result) |
| Check if a Result<T> is successful. | |
| template<typename T > | |
| bool | is_error (const kcenon::common::Result< T > &result) |
| Check if a Result<T> is an error. | |
| bool | is_success (const kcenon::common::VoidResult &result) |
| Check if a VoidResult is successful. | |
| bool | is_error (const kcenon::common::VoidResult &result) |
| Check if a VoidResult is an error. | |
Query assertion helpers.
| bool database::testing::assertions::contains_field_value | ( | const core::database_result & | result, |
| const std::string & | field, | ||
| const T & | value ) |
Check if result contains a row with specific field value.
Definition at line 201 of file database_test_utils.h.
|
inline |
Check if result contains expected number of rows.
Definition at line 186 of file database_test_utils.h.
|
inline |
Check if result is empty.
Definition at line 193 of file database_test_utils.h.
| bool database::testing::assertions::is_error | ( | const kcenon::common::Result< T > & | result | ) |
Check if a Result<T> is an error.
Definition at line 225 of file database_test_utils.h.
|
inline |
Check if a VoidResult is an error.
Definition at line 239 of file database_test_utils.h.
| bool database::testing::assertions::is_success | ( | const kcenon::common::Result< T > & | result | ) |
Check if a Result<T> is successful.
Definition at line 217 of file database_test_utils.h.
|
inline |
Check if a VoidResult is successful.
Definition at line 232 of file database_test_utils.h.