13 #include "eckit/testing/Test.h"
17 using namespace eckit::testing;
21 #define CHECK_RETURN(x) EXPECT((x) == ODC_SUCCESS)
39 CASE(
"Count lines in an existing ODB file") {
43 std::unique_ptr<odc_reader_t> reader_deleter(reader);
47 std::unique_ptr<odc_frame_t> frame_deleter(frame);
67 EXPECT(ntables == 333);
68 EXPECT(totalRows == 3321753);
73 CASE(
"Decode an entire ODB file") {
93 CASE(
"Decode an entire ODB file preallocated data structures") {
126 int main(
int argc,
char* argv[]) {
127 return run_tests(argc, argv);
int odc_frame_column_count(const odc_frame_t *frame, int *count)
int odc_free_frame(const odc_frame_t *frame)
int odc_next_frame(odc_frame_t *frame)
int odc_open_path(odc_reader_t **reader, const char *filename)
int odc_frame_row_count(const odc_frame_t *frame, long *count)
int odc_new_frame(odc_frame_t **frame, odc_reader_t *reader)
int odc_close(const odc_reader_t *reader)
int odc_free_decoder(const odc_decoder_t *decoder)
int main(int argc, char *argv[])
CASE("Count lines in an existing ODB file")