IODA Bundle
UnitTests.cc File Reference
#include <fstream>
#include "eckit/io/FileHandle.h"
#include "eckit/io/BufferedHandle.h"
#include "eckit/log/Number.h"
#include "eckit/log/Timer.h"
#include "eckit/exception/Exceptions.h"
#include "eckit/sql/SQLParser.h"
#include "eckit/sql/SQLSelectFactory.h"
#include "odc/api/Odb.h"
#include "odc/Comparator.h"
#include "odc/core/TablesReader.h"
#include "odc/data/DataHandleFactory.h"
#include "odc/DispatchingWriter.h"
#include "odc/ODBAPISettings.h"
#include "odc/odccapi.h"
#include "odc/Reader.h"
#include "odc/Select.h"
#include "odc/tools/CountTool.h"
#include "odc/tools/SplitTool.h"
#include "odc/tools/TestCase.h"
#include "odc/Writer.h"
Include dependency graph for UnitTests.cc:

Go to the source code of this file.

Classes

class  TemporaryPathName
 

Typedefs

typedef long long llong
 
typedef TemporaryPathName ScratchFile
 

Functions

static void foobar ()
 
static void createDataForMixedAggregated ()
 
 TEST (selectAggregatedAndNonAggregated)
 
static void createDataForMixedAggregated2 ()
 
 TEST (selectAggregatedAndNonAggregated2)
 
static void createDataForMixedAggregated3 ()
 
 TEST (selectAggregatedAndNonAggregated3)
 
static void createDataForMixedAggregatedNULL ()
 
 TEST (selectAggregatedAndNonAggregatedNULL)
 
static void createDataForRegex1 ()
 
static void regex1 ()
 
 TEST (vector_syntax)
 
 TEST (bitfieldsLength)
 
 TEST (bitfieldsPrintHexadecimal)
 ODB-85. More...
 
static void create_stringInWhere_file ()
 
 TEST (stringInWhere)
 
 TEST (vector_syntax2)
 
 TEST (rownumber1)
 
 TEST (sqlOutputFormatting)
 
static void createDataForWindSpeedWindDirection ()
 
 TEST (windSpeedWindDirection)
 
static void SplitTool_chunks ()
 
static void FilePool1 ()
 
static void copyVectorToArray ()
 
static void count (void *counter, const double *data, size_t n)
 
static void * create_counter ()
 
static void destroy_counter (void *counter)
 
static void * reduce_counter (void *left, void *right)
 
 TEST (hash_operator_on_select_list)
 
 TEST (hash_operator_in_where)
 
 TEST (bitfields_hash_operator)
 
 TEST (select_constant_value)
 
 TEST (include)
 
 TEST (log_error)
 
 TEST (meta_data_reader_checks_if_file_truncated)
 
 TEST (meta_data_reader_fails_scanning_corrupted_file)
 
 TEST (operator_ge)
 
static void create_1to10 ()
 
template<typename T >
static void test_isNewDataset ()
 
 TEST (JULIAN_SECONDS)
 
 TEST (CREATE_TABLE_and_SELECT_INTO)
 
 TEST (SELECT_WHERE_0)
 
 TEST (QuestionMarkHandlingWhenSplittingByStringColumn_ODB235)
 
 TEST (LegacyAPIExecuteSelectTwice)
 
 TEST (LegacyAPITraverseReaderTwice)
 
 TEST (HttpHandle)
 

Typedef Documentation

◆ llong

typedef long long llong

Definition at line 45 of file UnitTests.cc.

◆ ScratchFile

Definition at line 552 of file UnitTests.cc.

Function Documentation

◆ copyVectorToArray()

static void copyVectorToArray ( )
static

Definition at line 506 of file UnitTests.cc.

Here is the call graph for this function:

◆ count()

static void count ( void *  counter,
const double *  data,
size_t  n 
)
static

Definition at line 531 of file UnitTests.cc.

Here is the caller graph for this function:

◆ create_1to10()

static void create_1to10 ( )
static

Definition at line 772 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_counter()

static void* create_counter ( )
static

Definition at line 532 of file UnitTests.cc.

◆ create_stringInWhere_file()

static void create_stringInWhere_file ( )
static

Definition at line 319 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDataForMixedAggregated()

static void createDataForMixedAggregated ( )
static

Definition at line 61 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDataForMixedAggregated2()

static void createDataForMixedAggregated2 ( )
static

Definition at line 110 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDataForMixedAggregated3()

static void createDataForMixedAggregated3 ( )
static

Definition at line 144 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDataForMixedAggregatedNULL()

static void createDataForMixedAggregatedNULL ( )
static

Definition at line 178 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDataForRegex1()

static void createDataForRegex1 ( )
static

Definition at line 218 of file UnitTests.cc.

Here is the call graph for this function:

◆ createDataForWindSpeedWindDirection()

static void createDataForWindSpeedWindDirection ( )
static

Definition at line 445 of file UnitTests.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy_counter()

static void destroy_counter ( void *  counter)
static

Definition at line 538 of file UnitTests.cc.

◆ FilePool1()

static void FilePool1 ( )
static

Definition at line 500 of file UnitTests.cc.

◆ foobar()

static void foobar ( )
static

Definition at line 47 of file UnitTests.cc.

Here is the call graph for this function:

◆ reduce_counter()

static void* reduce_counter ( void *  left,
void *  right 
)
static

Definition at line 539 of file UnitTests.cc.

◆ regex1()

static void regex1 ( )
static

Definition at line 234 of file UnitTests.cc.

Here is the call graph for this function:

◆ SplitTool_chunks()

static void SplitTool_chunks ( )
static

Definition at line 488 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [1/28]

TEST ( bitfields_hash_operator  )

Definition at line 627 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [2/28]

TEST ( bitfieldsLength  )

Definition at line 285 of file UnitTests.cc.

◆ TEST() [3/28]

TEST ( bitfieldsPrintHexadecimal  )

ODB-85.

Definition at line 308 of file UnitTests.cc.

◆ TEST() [4/28]

TEST ( CREATE_TABLE_and_SELECT_INTO  )

Definition at line 890 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [5/28]

TEST ( hash_operator_in_where  )

Shift or hash (#) operator doesn't work in the WHERE clause. This test doesn't test anything yet.

Definition at line 592 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [6/28]

TEST ( hash_operator_on_select_list  )

Definition at line 554 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [7/28]

TEST ( HttpHandle  )

Definition at line 1054 of file UnitTests.cc.

◆ TEST() [8/28]

TEST ( include  )

Definition at line 661 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [9/28]

TEST ( JULIAN_SECONDS  )

Definition at line 885 of file UnitTests.cc.

◆ TEST() [10/28]

TEST ( LegacyAPIExecuteSelectTwice  )

Definition at line 1003 of file UnitTests.cc.

◆ TEST() [11/28]

TEST ( LegacyAPITraverseReaderTwice  )

Definition at line 1027 of file UnitTests.cc.

◆ TEST() [12/28]

TEST ( log_error  )

Definition at line 686 of file UnitTests.cc.

◆ TEST() [13/28]

TEST ( meta_data_reader_checks_if_file_truncated  )

Definition at line 714 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [14/28]

TEST ( meta_data_reader_fails_scanning_corrupted_file  )

Definition at line 727 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [15/28]

TEST ( operator_ge  )

Definition at line 740 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [16/28]

TEST ( QuestionMarkHandlingWhenSplittingByStringColumn_ODB235  )

Definition at line 969 of file UnitTests.cc.

◆ TEST() [17/28]

TEST ( rownumber1  )

Definition at line 375 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [18/28]

TEST ( select_constant_value  )

Definition at line 641 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [19/28]

TEST ( SELECT_WHERE_0  )

Definition at line 956 of file UnitTests.cc.

◆ TEST() [20/28]

TEST ( selectAggregatedAndNonAggregated  )

Definition at line 78 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [21/28]

TEST ( selectAggregatedAndNonAggregated2  )

Definition at line 129 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [22/28]

TEST ( selectAggregatedAndNonAggregated3  )

Definition at line 161 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [23/28]

TEST ( selectAggregatedAndNonAggregatedNULL  )

Definition at line 198 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [24/28]

TEST ( sqlOutputFormatting  )

Definition at line 401 of file UnitTests.cc.

◆ TEST() [25/28]

TEST ( stringInWhere  )

Definition at line 334 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [26/28]

TEST ( vector_syntax  )

Definition at line 246 of file UnitTests.cc.

Here is the call graph for this function:

◆ TEST() [27/28]

TEST ( vector_syntax2  )

Definition at line 345 of file UnitTests.cc.

◆ TEST() [28/28]

TEST ( windSpeedWindDirection  )

Definition at line 461 of file UnitTests.cc.

Here is the call graph for this function:

◆ test_isNewDataset()

template<typename T >
static void test_isNewDataset ( )
static

Definition at line 811 of file UnitTests.cc.

Here is the call graph for this function: