F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EnumToStringTest.cpp File Reference
#include "FppTest/enum/ImplicitEnumAc.hpp"
#include "FppTest/enum/ExplicitEnumAc.hpp"
#include "FppTest/enum/DefaultEnumAc.hpp"
#include "FppTest/enum/IntervalEnumAc.hpp"
#include "FppTest/enum/SerializeTypeU8EnumAc.hpp"
#include "FppTest/enum/SerializeTypeU64EnumAc.hpp"
#include "gtest/gtest.h"
#include <cstring>
#include <sstream>

Go to the source code of this file.

Classes

class  EnumToStringTest< EnumType >
 

Namespaces

namespace  FppTest
 

Typedefs

using EnumTypes = ::testing::Types< Implicit, Explicit, Default, Interval, SerializeTypeU8, SerializeTypeU64 >
 

Functions

template<typename EnumType >
void FppTest::setEnumValArray (typename EnumType::T(&a)[EnumType::NUM_CONSTANTS+1])
 
template<>
void FppTest::setEnumValArray< Explicit > (Explicit::T(&a)[Explicit::NUM_CONSTANTS+1])
 
template<>
void FppTest::setEnumValArray< Interval > (Interval::T(&a)[Interval::NUM_CONSTANTS+1])
 
template<typename EnumType >
void FppTest::setEnumStrArray (std::string(&a)[EnumType::NUM_CONSTANTS+1])
 
template<>
void FppTest::setEnumStrArray< Explicit > (std::string(&a)[Explicit::NUM_CONSTANTS+1])
 
template<>
void FppTest::setEnumStrArray< Interval > (std::string(&a)[Interval::NUM_CONSTANTS+1])
 
 TYPED_TEST_SUITE (EnumToStringTest, EnumTypes)
 
 TYPED_TEST (EnumToStringTest, ToString)
 

Typedef Documentation

◆ EnumTypes

using EnumTypes = ::testing::Types< Implicit, Explicit, Default, Interval, SerializeTypeU8, SerializeTypeU64 >

Definition at line 105 of file EnumToStringTest.cpp.

Function Documentation

◆ TYPED_TEST()

TYPED_TEST ( EnumToStringTest  ,
ToString   
)

Definition at line 116 of file EnumToStringTest.cpp.

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( EnumToStringTest  ,
EnumTypes   
)