Classes | Namespaces | Macros | Functions
common-tests.h File Reference
#include "soci.h"
#include "soci-config.h"
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <string>
#include <typeinfo>
Include dependency graph for common-tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  soci::tests::common_tests
 
class  soci::tests::function_creator_base
 
class  MyInt
 
struct  PhonebookEntry
 
struct  PhonebookEntry2
 
class  PhonebookEntry3
 
class  soci::tests::procedure_creator_base
 
class  soci::tests::table_creator_base
 
class  soci::tests::test_context_base
 
struct  soci::type_conversion< MyInt >
 
struct  soci::type_conversion< PhonebookEntry >
 
struct  soci::type_conversion< PhonebookEntry2 >
 
struct  soci::type_conversion< PhonebookEntry3 >
 
struct  soci::tests::common_tests::where_condition
 

Namespaces

 soci
 
 soci::tests
 

Macros

#define SOCI_TEST_ENSURE_CONNECTED(sql, method)
 
#define SOCI_TEST_ENSURE_CONNECTED2(sql, method)
 

Functions

bool soci::tests::equal_approx (double const a, double const b)
 

Macro Definition Documentation

#define SOCI_TEST_ENSURE_CONNECTED (   sql,
  method 
)
Value:
{ \
std::string msg; \
try { \
(sql.method)(); \
assert(!"exception expected"); \
} catch (soci_error const &e) { msg = e.what(); } \
assert(msg.empty() == false); } (void)sql

Definition at line 164 of file common-tests.h.

#define SOCI_TEST_ENSURE_CONNECTED2 (   sql,
  method 
)
Value:
{ \
std::string msg; \
try { std::string seq; long v(0); \
(sql.method)(seq, v); \
assert(!"exception expected"); \
} catch (soci_error const &e) { msg = e.what(); } \
assert(msg.empty() == false); } (void)sql

Definition at line 172 of file common-tests.h.



asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41