atMETEO
An ATmega based weather station
Functions
test_bitdecoder.cpp File Reference

Unit tests for Bit Decoder. More...

#include <vector>
#include <catch.hpp>
#include "lib/utils.h"
#include "lib/bitdecoder.h"

Functions

 TEST_CASE ("DecodingBitsWithByteNoParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::NoParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithByteNoParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::NoParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithByteEvenParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::EvenParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithByteEvenParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithByteOddParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::OddParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithByteOddParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint8_t, Sensors::OddParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntNoParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::NoParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntNoParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::NoParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntEvenParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::EvenParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntEvenParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntOddParityMsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::OddParity and Sensors::MsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsWithIntOddParityLsb", "[bitdecoder]")
 Tests Sensors::BitDecoder with uint32_t, Sensors::OddParity and Sensors::LsbBitNumbering configuration. More...
 
 TEST_CASE ("DecodingBitsFromRecordedRFMessage", "[bitdecoder]")
 Tests Sensors::BitDecoder with a recorded RF message (using uint32_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration). More...
 

Detailed Description

Unit tests for Bit Decoder.

Function Documentation

◆ TEST_CASE() [1/13]

TEST_CASE ( "DecodingBitsWithByteNoParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::NoParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [2/13]

TEST_CASE ( "DecodingBitsWithByteNoParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::NoParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [3/13]

TEST_CASE ( "DecodingBitsWithByteEvenParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::EvenParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [4/13]

TEST_CASE ( "DecodingBitsWithByteEvenParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [5/13]

TEST_CASE ( "DecodingBitsWithByteOddParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::OddParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [6/13]

TEST_CASE ( "DecodingBitsWithByteOddParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint8_t, Sensors::OddParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [7/13]

TEST_CASE ( "DecodingBitsWithIntNoParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::NoParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [8/13]

TEST_CASE ( "DecodingBitsWithIntNoParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::NoParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [9/13]

TEST_CASE ( "DecodingBitsWithIntEvenParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::EvenParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [10/13]

TEST_CASE ( "DecodingBitsWithIntEvenParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [11/13]

TEST_CASE ( "DecodingBitsWithIntOddParityMsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::OddParity and Sensors::MsbBitNumbering configuration.

◆ TEST_CASE() [12/13]

TEST_CASE ( "DecodingBitsWithIntOddParityLsb"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with uint32_t, Sensors::OddParity and Sensors::LsbBitNumbering configuration.

◆ TEST_CASE() [13/13]

TEST_CASE ( "DecodingBitsFromRecordedRFMessage"  ,
""  [bitdecoder] 
)

Tests Sensors::BitDecoder with a recorded RF message (using uint32_t, Sensors::EvenParity and Sensors::LsbBitNumbering configuration).