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

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

 Q_DECLARE_METATYPE (QCanBusFrame)
 
 TEST_CASE ("Test basic functionality", "[candevice]")
 
 TEST_CASE ("Port information", "[candevice]")
 
 TEST_CASE ("Calling frameReceived emits dataUpdated and outData returns that frame", "[candevice]")
 
 TEST_CASE ("Calling frameSent emits dataUpdated and outData returns that frame", "[candevice]")
 
 TEST_CASE ("Calling setInData will result in sendFrame being emitted", "[candevice]")
 
 TEST_CASE ("Test save configuration", "[candevice]")
 
 TEST_CASE ("Getters", "[candevice]")
 
 TEST_CASE ("Tx queue full test", "[candevice]")
 
 TEST_CASE ("Rx queue full test", "[candevice]")
 
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/9]

TEST_CASE ( "Calling frameReceived emits dataUpdated and outData returns that frame"  ,
""  [candevice] 
)

◆ TEST_CASE() [2/9]

TEST_CASE ( "Calling frameSent emits dataUpdated and outData returns that frame"  ,
""  [candevice] 
)

◆ TEST_CASE() [3/9]

TEST_CASE ( "Calling setInData will result in sendFrame being emitted"  ,
""  [candevice] 
)

◆ TEST_CASE() [4/9]

TEST_CASE ( "Getters"  ,
""  [candevice] 
)

◆ TEST_CASE() [5/9]

TEST_CASE ( "Port information"  ,
""  [candevice] 
)

◆ TEST_CASE() [6/9]

TEST_CASE ( "Rx queue full test"  ,
""  [candevice] 
)

◆ TEST_CASE() [7/9]

TEST_CASE ( "Test basic functionality"  ,
""  [candevice] 
)

◆ TEST_CASE() [8/9]

TEST_CASE ( "Test save configuration"  ,
""  [candevice] 
)

◆ TEST_CASE() [9/9]

TEST_CASE ( "Tx queue full test"  ,
""  [candevice] 
)

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger