IODA Bundle
test_encode_odb.cc File Reference
#include "eckit/io/Buffer.h"
#include "eckit/io/MemoryHandle.h"
#include "eckit/testing/Test.h"
#include "eckit/exception/Exceptions.h"
#include "eckit/eckit_config.h"
#include "odc/Writer.h"
#include "odc/Reader.h"
#include "odc/api/ColumnType.h"
Include dependency graph for test_encode_odb.cc:

Go to the source code of this file.

Functions

 CASE ("Columns are initialised correctly for writing")
 
 CASE ("If out-of range columns are created, exceptions are thrown")
 
 CASE ("If columns are created with invalid types, exceptions are thrown")
 
 CASE ("Columns names must be unique")
 
 CASE ("Data is encoded and read back correctly")
 
 CASE ("We ASSERT on cases where we try and use an incompletely configured writer")
 
 CASE ("Data is automatically written after a configurable number of rows")
 
 CASE ("Pathological data for integral codecs is correctly encoded")
 
int main (int argc, char *argv[])
 

Variables

const float float_lowest = -std::numeric_limits<float>::max()
 
const double double_lowest = -std::numeric_limits<double>::max()
 

Function Documentation

◆ CASE() [1/8]

CASE ( "Columns are initialised correctly for writing"  )

Definition at line 33 of file test_encode_odb.cc.

◆ CASE() [2/8]

CASE ( "Columns names must be unique"  )

Definition at line 147 of file test_encode_odb.cc.

◆ CASE() [3/8]

CASE ( "Data is automatically written after a configurable number of rows"  )

Definition at line 407 of file test_encode_odb.cc.

◆ CASE() [4/8]

CASE ( "Data is encoded and read back correctly"  )

Definition at line 175 of file test_encode_odb.cc.

Here is the call graph for this function:

◆ CASE() [5/8]

CASE ( "If columns are created with invalid  types,
exceptions are thrown"   
)

Definition at line 128 of file test_encode_odb.cc.

◆ CASE() [6/8]

CASE ( "If out-of range columns are  created,
exceptions are thrown"   
)

Definition at line 112 of file test_encode_odb.cc.

◆ CASE() [7/8]

CASE ( "Pathological data for integral codecs is correctly encoded"  )

Definition at line 411 of file test_encode_odb.cc.

Here is the call graph for this function:

◆ CASE() [8/8]

CASE ( "We ASSERT on cases where we try and use an incompletely configured writer"  )

Definition at line 382 of file test_encode_odb.cc.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 502 of file test_encode_odb.cc.

Variable Documentation

◆ double_lowest

const double double_lowest = -std::numeric_limits<double>::max()

Definition at line 25 of file test_encode_odb.cc.

◆ float_lowest

const float float_lowest = -std::numeric_limits<float>::max()

Definition at line 24 of file test_encode_odb.cc.