CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
common_test.cpp File Reference
#include "enumiterator.h"
#include <catch.hpp>
#include <fakeit.hpp>
#include "sortmodel.h"
#include <QSignalSpy>
#include <QUuid>
#include <QtWidgets/QApplication>
#include <bcastmsgs.h>
#include <candbhandler.h>
#include <cstddef>
#include <cstdint>
#include <iconlabel.h>
#include <iterator>
#include <limits>
#include <log.h>
#include <propertyfields.h>
#include <type_traits>
#include <utility>
#include <vector>
#include <QStandardItemModel>
#include <QTableView>
Include dependency graph for common_test.cpp:

Macros

#define CATCH_CONFIG_RUNNER
 

Enumerations

enum class  Trivial { A , B , C }
 
enum class  TrivialStart {
  A = 0 , B , C , D ,
  E
}
 
enum class  NonTrivial : std::uint16_t { A = 100 , B = 101 , C = 102 }
 
enum class  NoPastTheEndUnsigned : std::size_t { A = std::numeric_limits<std::size_t>::min() , B = std::numeric_limits<std::size_t>::max() }
 
enum class  NoPastTheEndSigned : std::ptrdiff_t { A = std::numeric_limits<std::ptrdiff_t>::min() , B = std::numeric_limits<std::ptrdiff_t>::max() }
 

Functions

 TEST_CASE ("EnumIterator singularity", "[common]")
 
 TEST_CASE ("EnumIterator non-singular", "[common]")
 
 TEST_CASE ("EnumIterator operator*", "[common]")
 
 TEST_CASE ("EnumIterator operator->", "[common]")
 
 TEST_CASE ("EnumIterator operator++", "[common]")
 
 TEST_CASE ("EnumIterator swap", "[common]")
 
 TEST_CASE ("EnumIterator non-trivial", "[common]")
 
 TEST_CASE ("EnumIterator iterator_traits", "[common]")
 
 TEST_CASE ("EnumIterator next", "[common]")
 
 TEST_CASE ("EnumIterator range-based-for non-trivial", "[common]")
 
 TEST_CASE ("EnumIterator range-based-for trivial", "[common]")
 
 TEST_CASE ("EnumIterator range-based-for trivial-start", "[common]")
 
 TEST_CASE ("IconLable sizeHint", "[common]")
 
 TEST_CASE ("CanDbHandler - CanDbUpdated", "[common]")
 
 TEST_CASE ("CanDbHandler - updateCurrentDbFromProps", "[common]")
 
 TEST_CASE ("CanDbHandler - InitDone", "[common]")
 
 TEST_CASE ("CanDbHandler - NodeDeleted", "[common]")
 
 TEST_CASE ("CanDbHandler - ConfigChanged", "[common]")
 
 TEST_CASE ("CanDbHandler - createPropertyWidget", "[common]")
 
void addNewFrame (uint &rowID, double time, uint frameID, uint data, QStandardItemModel &tvModel)
 
 TEST_CASE ("Sort test", "[canrawview]")
 
int main (int argc, char *argv[])
 

Variables

std::shared_ptr< spdlog::logger > kDefaultLogger
 

Macro Definition Documentation

◆ CATCH_CONFIG_RUNNER

#define CATCH_CONFIG_RUNNER

Enumeration Type Documentation

◆ NonTrivial

enum class NonTrivial : std::uint16_t
strong
Enumerator

◆ NoPastTheEndSigned

enum class NoPastTheEndSigned : std::ptrdiff_t
strong
Enumerator

◆ NoPastTheEndUnsigned

enum class NoPastTheEndUnsigned : std::size_t
strong
Enumerator

◆ Trivial

enum class Trivial
strong
Enumerator

◆ TrivialStart

enum class TrivialStart
strong
Enumerator

Function Documentation

◆ addNewFrame()

void addNewFrame ( uint &  rowID,
double  time,
uint  frameID,
uint  data,
QStandardItemModel &  tvModel 
)

◆ main()

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

◆ TEST_CASE() [1/20]

TEST_CASE ( "CanDbHandler - CanDbUpdated"  ,
""  [common] 
)

◆ TEST_CASE() [2/20]

TEST_CASE ( "CanDbHandler - ConfigChanged"  ,
""  [common] 
)

◆ TEST_CASE() [3/20]

TEST_CASE ( "CanDbHandler - createPropertyWidget"  ,
""  [common] 
)

◆ TEST_CASE() [4/20]

TEST_CASE ( "CanDbHandler - InitDone"  ,
""  [common] 
)

◆ TEST_CASE() [5/20]

TEST_CASE ( "CanDbHandler - NodeDeleted"  ,
""  [common] 
)

◆ TEST_CASE() [6/20]

TEST_CASE ( "CanDbHandler - updateCurrentDbFromProps"  ,
""  [common] 
)

◆ TEST_CASE() [7/20]

TEST_CASE ( "EnumIterator iterator_traits"  ,
""  [common] 
)

◆ TEST_CASE() [8/20]

TEST_CASE ( "EnumIterator next"  ,
""  [common] 
)

◆ TEST_CASE() [9/20]

TEST_CASE ( "EnumIterator non-singular"  ,
""  [common] 
)

◆ TEST_CASE() [10/20]

TEST_CASE ( "EnumIterator non-trivial"  ,
""  [common] 
)

◆ TEST_CASE() [11/20]

TEST_CASE ( "EnumIterator operator*"  ,
""  [common] 
)

◆ TEST_CASE() [12/20]

TEST_CASE ( "EnumIterator operator++"  ,
""  [common] 
)

◆ TEST_CASE() [13/20]

TEST_CASE ( "EnumIterator operator->"  ,
""  [common] 
)

◆ TEST_CASE() [14/20]

TEST_CASE ( "EnumIterator range-based-for non-trivial"  ,
""  [common] 
)

◆ TEST_CASE() [15/20]

TEST_CASE ( "EnumIterator range-based-for trivial"  ,
""  [common] 
)

◆ TEST_CASE() [16/20]

TEST_CASE ( "EnumIterator range-based-for trivial-start"  ,
""  [common] 
)

◆ TEST_CASE() [17/20]

TEST_CASE ( "EnumIterator singularity"  ,
""  [common] 
)

◆ TEST_CASE() [18/20]

TEST_CASE ( "EnumIterator swap"  ,
""  [common] 
)

◆ TEST_CASE() [19/20]

TEST_CASE ( "IconLable sizeHint"  ,
""  [common] 
)

◆ TEST_CASE() [20/20]

TEST_CASE ( "Sort test"  ,
""  [canrawview] 
)

Variable Documentation

◆ kDefaultLogger

std::shared_ptr<spdlog::logger> kDefaultLogger