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

Go to the source code of this file.

Macros

#define CHECK(bitlen, variable, expected_value)
 

Functions

 TEST (ScalarCodec, Basic)
 
 TEST (ScalarCodec, RepresentationCorrectness)
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   bitlen,
  variable,
  expected_value 
)
Value:
do { \
ASSERT_EQ(1, sc_rd.decode<bitlen>(variable)); \
ASSERT_EQ(expected_value, variable); \
} while (0)

Function Documentation

◆ TEST() [1/2]

TEST ( ScalarCodec  ,
Basic   
)

Definition at line 11 of file scalar_codec.cpp.

◆ TEST() [2/2]

TEST ( ScalarCodec  ,
RepresentationCorrectness   
)

Definition at line 83 of file scalar_codec.cpp.



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