The Battle for Wesnoth  1.15.3+dev
Macros | Functions
ParameterizedQueryTest.cpp File Reference
#include "ParameterizedQueryTest.h"
Include dependency graph for ParameterizedQueryTest.cpp:

Go to the source code of this file.

Macros

#define ParamTest_TEST(call, call2, name, value)
 

Functions

 TEST_F (ParameterizedQueryTest, bindNormal)
 
 TEST_F (ParameterizedQueryTest, emptyBind)
 
 TEST_F (ParameterizedQueryTest, emptyBindQuery)
 
 TEST_F (ParameterizedQueryTest, bindAfterQuery)
 
 TEST_F (ParameterizedQueryTest, bindAnyDataType)
 
 TEST_F (ParameterizedQueryTest, bindExecute)
 
 TEST_F (ParameterizedQueryTest, bindDataBlob)
 
 TEST_F (ParameterizedQueryTest, bindDataBlobNullPtr)
 
 TEST_F (ParameterizedQueryTest, bindWithoutParameters)
 
 TEST_F (ParameterizedQueryTest, bindReuseSimple)
 
 TEST_F (ParameterizedQueryTest, bindReuseString)
 

Macro Definition Documentation

◆ ParamTest_TEST

#define ParamTest_TEST (   call,
  call2,
  name,
  value 
)
Value:
errorQuery = m_con->create_statement("UPDATE " + m_table_name + " SET " + name + "= ?;"); \
call; \
errorQuery->execute(); \
testQuery = m_con->create_statement("SELECT " + std::string(name) + " FROM " + m_table_name + \
" WHERE id = 1;"); \
queryResult = testQuery->query(); \
ASSERT_TRUE(queryResult->next()); \
ASSERT_EQ(call2, value);

Referenced by TEST_F().

Function Documentation

◆ TEST_F() [1/11]

TEST_F ( ParameterizedQueryTest  ,
bindNormal   
)

Definition at line 11 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [2/11]

TEST_F ( ParameterizedQueryTest  ,
emptyBind   
)

Definition at line 22 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [3/11]

TEST_F ( ParameterizedQueryTest  ,
emptyBindQuery   
)

Definition at line 32 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [4/11]

TEST_F ( ParameterizedQueryTest  ,
bindAfterQuery   
)

Definition at line 37 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [5/11]

TEST_F ( ParameterizedQueryTest  ,
bindAnyDataType   
)

◆ TEST_F() [6/11]

TEST_F ( ParameterizedQueryTest  ,
bindExecute   
)

Definition at line 85 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [7/11]

TEST_F ( ParameterizedQueryTest  ,
bindDataBlob   
)

Definition at line 93 of file ParameterizedQueryTest.cpp.

References c.

◆ TEST_F() [8/11]

TEST_F ( ParameterizedQueryTest  ,
bindDataBlobNullPtr   
)

Definition at line 117 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [9/11]

TEST_F ( ParameterizedQueryTest  ,
bindWithoutParameters   
)

Definition at line 123 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [10/11]

TEST_F ( ParameterizedQueryTest  ,
bindReuseSimple   
)

Definition at line 129 of file ParameterizedQueryTest.cpp.

◆ TEST_F() [11/11]

TEST_F ( ParameterizedQueryTest  ,
bindReuseString   
)

Definition at line 167 of file ParameterizedQueryTest.cpp.