opatIO-cpp 0.3.0a
Open Parametrized Array Table
Loading...
Searching...
No Matches
opatIOTest.cpp File Reference

Unit tests for the OpatIO class and associated structs. More...

#include <gtest/gtest.h>
#include "opatIO.h"
#include "indexVector.h"
#include "picosha2.h"
#include <iostream>
#include <string>

Classes

class  opatIOTest
 Test suite for the const class. More...
 

Functions

 TEST_F (opatIOTest, DefaultConstructor)
 
 TEST_F (opatIOTest, ReadHeader)
 
 TEST_F (opatIOTest, ReadCardCatalog)
 
 TEST_F (opatIOTest, ReadDataCard)
 
 TEST_F (opatIOTest, AccessTableByTag)
 
 TEST_F (opatIOTest, SliceTable)
 
 TEST_F (opatIOTest, GetRow)
 
 TEST_F (opatIOTest, GetColumn)
 
 TEST_F (opatIOTest, GetRawData)
 
 TEST_F (opatIOTest, TableAscii)
 
 TEST_F (opatIOTest, getValue)
 
 TEST_F (opatIOTest, getBounds)
 

Variables

std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/opatIO-cpp/tests/gs98hz.opat"
 

Detailed Description

Unit tests for the OpatIO class and associated structs.

Function Documentation

◆ TEST_F() [1/12]

TEST_F ( opatIOTest ,
AccessTableByTag  )
Test
Verify accessing a table by tag in a DataCard.

◆ TEST_F() [2/12]

TEST_F ( opatIOTest ,
DefaultConstructor  )
Test
Verify default constructor initializes correctly.

◆ TEST_F() [3/12]

TEST_F ( opatIOTest ,
getBounds  )

◆ TEST_F() [4/12]

TEST_F ( opatIOTest ,
GetColumn  )
Test
Verify retrieving a single column from a table.

◆ TEST_F() [5/12]

TEST_F ( opatIOTest ,
GetRawData  )
Test
Verify retrieving raw data from a table.

◆ TEST_F() [6/12]

TEST_F ( opatIOTest ,
GetRow  )
Test
Verify retrieving a single row from a table.

◆ TEST_F() [7/12]

TEST_F ( opatIOTest ,
getValue  )

◆ TEST_F() [8/12]

TEST_F ( opatIOTest ,
ReadCardCatalog  )
Test
Verify reading the CardCatalog of an OPAT file.

◆ TEST_F() [9/12]

TEST_F ( opatIOTest ,
ReadDataCard  )
Test
Verify reading a DataCard from an OPAT file.

◆ TEST_F() [10/12]

TEST_F ( opatIOTest ,
ReadHeader  )
Test
Verify reading the header of an OPAT file.

◆ TEST_F() [11/12]

TEST_F ( opatIOTest ,
SliceTable  )
Test
Verify slicing a table.

◆ TEST_F() [12/12]

TEST_F ( opatIOTest ,
TableAscii  )
Test
Verify ASCII representation of a table.

Variable Documentation

◆ EXAMPLE_FILENAME

std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/opatIO-cpp/tests/gs98hz.opat"