Classes | Macros | Functions
BinUtils_T.cpp File Reference
#include "TestUtil.hpp"
#include "BinUtils.hpp"
#include "Exception.hpp"
#include <iostream>
#include <cmath>
Include dependency graph for BinUtils_T.cpp:

Go to the source code of this file.

Classes

class  BinUtils_T
 

Macros

#define HOSTTOTEST(TYPE, STR, VAL, FN)
 
#define HOSTTOTESTPOS(TYPE, STR, VAL, FN, POS)
 
#define TOHOSTTEST(TYPE, STR, EXP, FN)
 
#define TOHOSTTESTF(TYPE, STR, EXP, FN)
 
#define TOHOSTTESTFPOS(TYPE, STR, EXP, FN, POS)
 
#define TOHOSTTESTPOS(TYPE, STR, EXP, FN, POS)
 

Functions

int main (void)
 

Macro Definition Documentation

◆ HOSTTOTEST

#define HOSTTOTEST (   TYPE,
  STR,
  VAL,
  FN 
)
Value:
testFramework.changeSourceMethod(#FN); \
gnsstk::BinUtils::FN(buffer,VAL); \
TUASSERTE(int,0,memcmp(buffer,STR,sizeof(TYPE)));

Definition at line 81 of file BinUtils_T.cpp.

◆ HOSTTOTESTPOS

#define HOSTTOTESTPOS (   TYPE,
  STR,
  VAL,
  FN,
  POS 
)
Value:
testFramework.changeSourceMethod(#FN); \
gnsstk::BinUtils::FN(buffer,VAL,POS); \
TUASSERTE(int,0,memcmp(&buffer[POS],STR,sizeof(TYPE)));

Definition at line 85 of file BinUtils_T.cpp.

◆ TOHOSTTEST

#define TOHOSTTEST (   TYPE,
  STR,
  EXP,
  FN 
)
Value:
{ \
testFramework.changeSourceMethod(#FN); \
TYPE val; \
gnsstk::BinUtils::FN(STR,val); \
TUASSERTE(TYPE,EXP,val); \
}

Definition at line 52 of file BinUtils_T.cpp.

◆ TOHOSTTESTF

#define TOHOSTTESTF (   TYPE,
  STR,
  EXP,
  FN 
)
Value:
{ \
testFramework.changeSourceMethod(#FN); \
TYPE val; \
gnsstk::BinUtils::FN(STR,val); \
TUASSERTFE(EXP,val); \
}

Definition at line 66 of file BinUtils_T.cpp.

◆ TOHOSTTESTFPOS

#define TOHOSTTESTFPOS (   TYPE,
  STR,
  EXP,
  FN,
  POS 
)
Value:
{ \
testFramework.changeSourceMethod(#FN); \
TYPE val; \
gnsstk::BinUtils::FN(STR,val,POS); \
TUASSERTFE(EXP,val); \
}

Definition at line 73 of file BinUtils_T.cpp.

◆ TOHOSTTESTPOS

#define TOHOSTTESTPOS (   TYPE,
  STR,
  EXP,
  FN,
  POS 
)
Value:
{ \
testFramework.changeSourceMethod(#FN); \
TYPE val; \
gnsstk::BinUtils::FN(STR,val,POS); \
TUASSERTE(TYPE,EXP,val); \
}

Definition at line 59 of file BinUtils_T.cpp.

Function Documentation

◆ main()

int main ( void  )

Definition at line 595 of file BinUtils_T.cpp.



gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42