Macros | Functions
integer_spec.cpp File Reference
#include <gtest/gtest.h>
#include <uavcan/marshal/types.hpp>
#include <uavcan/transport/transfer_buffer.hpp>
Include dependency graph for integer_spec.cpp:

Go to the source code of this file.

Macros

#define CHECK(IntType, expected_value)
 

Functions

 TEST (IntegerSpec, Basic)
 
 TEST (IntegerSpec, Limits)
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   IntType,
  expected_value 
)
Value:
do { \
StorageType<IntType>::Type var = StorageType<IntType>::Type(); \
ASSERT_EQ(1, IntType::decode(var, sc_rd, uavcan::TailArrayOptDisabled)); \
ASSERT_EQ(expected_value, var); \
} while (0)

Function Documentation

◆ TEST() [1/2]

TEST ( IntegerSpec  ,
Basic   
)

Definition at line 51 of file integer_spec.cpp.

◆ TEST() [2/2]

TEST ( IntegerSpec  ,
Limits   
)

Definition at line 10 of file integer_spec.cpp.

uavcan::TailArrayOptDisabled
@ TailArrayOptDisabled
Definition: type_util.hpp:22


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:03