CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
canrawfilter_test.cpp File Reference
#include <QtWidgets/QApplication>
#include <canrawfilter.h>
#include "log.h"
#include <QCanBusFrame>
#include <QJsonArray>
#include <QJsonObject>
#include <QSignalSpy>
#include <catch.hpp>
#include <fakeit.hpp>
#include <gui/canrawfilterguiint.h>
Include dependency graph for canrawfilter_test.cpp:

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

 Q_DECLARE_METATYPE (QCanBusFrame)
 
 TEST_CASE ("Stubbed methods", "[canrawfilter]")
 
 TEST_CASE ("setConfig - qobj", "[canrawfilter]")
 
 TEST_CASE ("setConfig - json", "[canrawfilter]")
 
 TEST_CASE ("getConfig", "[canrawfilter]")
 
 TEST_CASE ("getQConfig", "[canrawfilter]")
 
 TEST_CASE ("configChanged", "[canrawfilter]")
 
 TEST_CASE ("getSupportedProperties", "[canrawfilter]")
 
 TEST_CASE ("default accept list RX", "[canrawfilter]")
 
template<typename M , typename TX , typename RX >
void setupMock (M &mock, TX &txCbk, RX &rxCbk)
 
 TEST_CASE ("empty accept list RX", "[canrawfilter]")
 
 TEST_CASE ("custom list RX", "[canrawfilter]")
 
 TEST_CASE ("empty accept list TX", "[canrawfilter]")
 
 TEST_CASE ("custom list TX", "[canrawfilter]")
 
 TEST_CASE ("Payload filtering", "[canrawfilter]")
 
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  )

◆ setupMock()

template<typename M , typename TX , typename RX >
void setupMock ( M &  mock,
TX txCbk,
RX rxCbk 
)

◆ TEST_CASE() [1/13]

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

◆ TEST_CASE() [2/13]

TEST_CASE ( "custom list RX"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [3/13]

TEST_CASE ( "custom list TX"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [4/13]

TEST_CASE ( "default accept list RX"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [5/13]

TEST_CASE ( "empty accept list RX"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [6/13]

TEST_CASE ( "empty accept list TX"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [7/13]

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

◆ TEST_CASE() [8/13]

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

◆ TEST_CASE() [9/13]

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

◆ TEST_CASE() [10/13]

TEST_CASE ( "Payload filtering"  ,
""  [canrawfilter] 
)

◆ TEST_CASE() [11/13]

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

◆ TEST_CASE() [12/13]

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

◆ TEST_CASE() [13/13]

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

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger