CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
canrawviewmodel_test.cpp File Reference
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtCore/QJsonArray>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtWidgets/QApplication>
#include <canrawviewmodel.h>
#include <datamodeltypes/canrawdata.h>
#include <QSignalSpy>
#include <catch.hpp>
#include <fakeit.hpp>
#include <log.h>
Include dependency graph for canrawviewmodel_test.cpp:

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

 Q_DECLARE_METATYPE (QCanBusFrame)
 
 TEST_CASE ("Test basic functionality", "[canrawview]")
 
 TEST_CASE ("Port information", "[canrawview]")
 
 TEST_CASE ("Calling setInData with direction TX will result in frameSent being emitted", "[canrawview]")
 
 TEST_CASE ("Calling setInData with direction RX will result in frameReceived being emitted", "[canrawview]")
 
 TEST_CASE ("Invalid direction", "[canrawview]")
 
 TEST_CASE ("Test save configuration", "[canrawview]")
 
bool compareJson (const QJsonObject &patern, const QJsonObject &check)
 
 TEST_CASE ("setCaption", "[canrawview]")
 
 TEST_CASE ("Test restore - no name", "[canrawview]")
 
 TEST_CASE ("Test restore - no caption", "[canrawview]")
 
 TEST_CASE ("Test restore configuration", "[canrawview]")
 
 TEST_CASE ("Test restore configuration - lack of column", "[canrawview]")
 
 TEST_CASE ("Test restore configuration - sorting format incorrect", "[canrawview]")
 
 TEST_CASE ("Test restore configuration - visual index incorrect", "[canrawview]")
 
 TEST_CASE ("Test restore configuration - width incorrect", "[canrawview]")
 
 TEST_CASE ("Getters", "[canrawview]")
 
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

◆ compareJson()

bool compareJson ( const QJsonObject &  patern,
const QJsonObject &  check 
)

◆ main()

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

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( QCanBusFrame  )

◆ TEST_CASE() [1/15]

TEST_CASE ( "Calling setInData with direction RX will result in frameReceived being emitted"  ,
""  [canrawview] 
)

◆ TEST_CASE() [2/15]

TEST_CASE ( "Calling setInData with direction TX will result in frameSent being emitted"  ,
""  [canrawview] 
)

◆ TEST_CASE() [3/15]

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

◆ TEST_CASE() [4/15]

TEST_CASE ( "Invalid direction"  ,
""  [canrawview] 
)

◆ TEST_CASE() [5/15]

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

◆ TEST_CASE() [6/15]

TEST_CASE ( "setCaption"  ,
""  [canrawview] 
)

◆ TEST_CASE() [7/15]

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

◆ TEST_CASE() [8/15]

TEST_CASE ( "Test restore - no caption"  ,
""  [canrawview] 
)

◆ TEST_CASE() [9/15]

TEST_CASE ( "Test restore - no name"  ,
""  [canrawview] 
)

◆ TEST_CASE() [10/15]

TEST_CASE ( "Test restore configuration - lack of column"  ,
""  [canrawview] 
)

◆ TEST_CASE() [11/15]

TEST_CASE ( "Test restore configuration - sorting format incorrect"  ,
""  [canrawview] 
)

◆ TEST_CASE() [12/15]

TEST_CASE ( "Test restore configuration - visual index incorrect"  ,
""  [canrawview] 
)

◆ TEST_CASE() [13/15]

TEST_CASE ( "Test restore configuration - width incorrect"  ,
""  [canrawview] 
)

◆ TEST_CASE() [14/15]

TEST_CASE ( "Test restore configuration"  ,
""  [canrawview] 
)

◆ TEST_CASE() [15/15]

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

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger