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

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

 Q_DECLARE_METATYPE (QCanBusFrame)
 
 TEST_CASE ("Test basic functionality", "[canloadModel]")
 
 TEST_CASE ("painterDelegate", "[canloadModel]")
 
 TEST_CASE ("nPorts", "[canloadModel]")
 
 TEST_CASE ("dataType", "[canloadModel]")
 
 TEST_CASE ("outData", "[canloadModel]")
 
 TEST_CASE ("setInData", "[canloadModel]")
 
 TEST_CASE ("currentLoad", "[canloadModel]")
 
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/7]

TEST_CASE ( "currentLoad"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [2/7]

TEST_CASE ( "dataType"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [3/7]

TEST_CASE ( "nPorts"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [4/7]

TEST_CASE ( "outData"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [5/7]

TEST_CASE ( "painterDelegate"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [6/7]

TEST_CASE ( "setInData"  ,
""  [canloadModel] 
)

◆ TEST_CASE() [7/7]

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

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger