OmniSciDB  04ee39c94c
AlterColumnTest.cpp File Reference
#include <gtest/gtest.h>
#include <boost/algorithm/string.hpp>
#include <boost/iterator/counting_iterator.hpp>
#include "boost/filesystem.hpp"
#include "Catalog/Catalog.h"
#include "Fragmenter/InsertOrderFragmenter.h"
#include "Import/Importer.h"
#include "Parser/parser.h"
#include "QueryEngine/ResultSet.h"
#include "QueryRunner/QueryRunner.h"
#include "Shared/UpdelRoll.h"
#include "Shared/geo_types.h"
#include "Tests/TestHelpers.h"
#include <tuple>
+ Include dependency graph for AlterColumnTest.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{AlterColumnTest.cpp}::AlterColumnTest
 

Namespaces

 anonymous_namespace{AlterColumnTest.cpp}
 

Macros

#define BASE_PATH   "./tmp"
 
#define MT   std::make_tuple
 

Typedefs

using QR = QueryRunner::QueryRunner
 

Functions

void anonymous_namespace{AlterColumnTest.cpp}::run_ddl_statement (const std::string &input_str)
 
std::shared_ptr< ResultSetanonymous_namespace{AlterColumnTest.cpp}::run_query (const std::string &query_str)
 
template<typename E = std::runtime_error>
bool anonymous_namespace{AlterColumnTest.cpp}::alter_common (const std::string &table, const std::string &column, const std::string &type, const std::string &comp, const std::string &val, const std::string &val2, const bool expect_throw=false)
 
void anonymous_namespace{AlterColumnTest.cpp}::import_table_file (const std::string &table, const std::string &file)
 
void anonymous_namespace{AlterColumnTest.cpp}::init_table_data (const std::string &table="trips", const std::string &create_table_cmd=create_table_trips, const std::string &file="trip_data_b.txt")
 
 anonymous_namespace{AlterColumnTest.cpp}::TEST_F (AlterColumnTest, Add_column_with_default)
 
 anonymous_namespace{AlterColumnTest.cpp}::TEST_F (AlterColumnTest, Add_column_with_null)
 
 anonymous_namespace{AlterColumnTest.cpp}::TEST (AlterColumnTest2, Drop_after_fail_to_add)
 
int main (int argc, char **argv)
 

Variables

bool anonymous_namespace{AlterColumnTest.cpp}::g_hoist_literals {true}
 
const char * anonymous_namespace{AlterColumnTest.cpp}::create_table_trips
 
std::vector< std::tuple< std::string, std::string, std::string, std::string > > anonymous_namespace{AlterColumnTest.cpp}::type_vals
 

Macro Definition Documentation

◆ BASE_PATH

#define BASE_PATH   "./tmp"

Definition at line 35 of file AlterColumnTest.cpp.

Referenced by main().

◆ MT

#define MT   std::make_tuple

Definition at line 178 of file AlterColumnTest.cpp.

Typedef Documentation

◆ QR

Definition at line 41 of file AlterColumnTest.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 257 of file AlterColumnTest.cpp.

References BASE_PATH, logger::ERROR, QueryRunner::QueryRunner::init(), TestHelpers::init_logger_stderr_only(), LOG, and QueryRunner::QueryRunner::reset().

257  {
259  testing::InitGoogleTest(&argc, argv);
260 
262 
263  int err{0};
264  try {
265  err = RUN_ALL_TESTS();
266  } catch (const std::exception& e) {
267  LOG(ERROR) << e.what();
268  }
269  QR::reset();
270  return err;
271 }
#define LOG(tag)
Definition: Logger.h:182
static QueryRunner * init(const char *db_path, const std::string &udf_filename="", const size_t max_gpu_mem=0, const int reserved_gpu_mem=256<< 20)
Definition: QueryRunner.h:70
void init_logger_stderr_only(int argc, char const *const *argv)
Definition: TestHelpers.h:194
#define BASE_PATH
+ Here is the call graph for this function: