CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
cansignaldecoder_test.cpp File Reference
#include <QtWidgets/QApplication>
#include <cansignaldecoder.h>
#include "log.h"
#include <QCanBusFrame>
#include <QSignalSpy>
#include <cansignaldata.h>
#include <catch.hpp>
#include <datamodeltypes/datadirection.h>
#include <fakeit.hpp>
Include dependency graph for cansignaldecoder_test.cpp:

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

 Q_DECLARE_METATYPE (QCanBusFrame)
 
 TEST_CASE ("Stubbed methods", "[cansignaldecoder]")
 
 TEST_CASE ("setConfig - qobj", "[cansignaldecoder]")
 
 TEST_CASE ("setConfig - json", "[cansignaldecoder]")
 
 TEST_CASE ("getConfig", "[cansignaldecoder]")
 
 TEST_CASE ("getQConfig", "[cansignaldecoder]")
 
 TEST_CASE ("configChanged", "[cansignaldecoder]")
 
 TEST_CASE ("getSupportedProperties", "[cansignaldecoder]")
 
 TEST_CASE ("UnsignedSignals_LE", "[cansignaldecoder]")
 
 TEST_CASE ("SignedSignals_LE", "[cansignaldecoder]")
 
 TEST_CASE ("UnsignedSignals_BE", "[cansignaldecoder]")
 
 TEST_CASE ("SignedSignals_BE", "[cansignaldecoder]")
 
 TEST_CASE ("Signal too big", "[cansignaldecoder]")
 
 TEST_CASE ("Signal caching", "[cansignaldecoder]")
 
int main (int argc, char *argv[])
 

Variables

std::shared_ptr< spdlog::logger > kDefaultLogger
 

Macro Definition Documentation

◆ CATCH_CONFIG_RUNNER

#define CATCH_CONFIG_RUNNER

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( QCanBusFrame  )

◆ TEST_CASE() [1/13]

TEST_CASE ( "configChanged"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [2/13]

TEST_CASE ( "getConfig"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [3/13]

TEST_CASE ( "getQConfig"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [4/13]

TEST_CASE ( "getSupportedProperties"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [5/13]

TEST_CASE ( "setConfig - json"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [6/13]

TEST_CASE ( "setConfig - qobj"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [7/13]

TEST_CASE ( "Signal caching"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [8/13]

TEST_CASE ( "Signal too big"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [9/13]

TEST_CASE ( "SignedSignals_BE"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [10/13]

TEST_CASE ( "SignedSignals_LE"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [11/13]

TEST_CASE ( "Stubbed methods"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [12/13]

TEST_CASE ( "UnsignedSignals_BE"  ,
""  [cansignaldecoder] 
)

◆ TEST_CASE() [13/13]

TEST_CASE ( "UnsignedSignals_LE"  ,
""  [cansignaldecoder] 
)

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger