CANdevStudio
Development tool for CAN bus simulation
|
#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>
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 |
#define CATCH_CONFIG_RUNNER |
bool compareJson | ( | const QJsonObject & | patern, |
const QJsonObject & | check | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Q_DECLARE_METATYPE | ( | QCanBusFrame | ) |
TEST_CASE | ( | "Calling setInData with direction RX will result in frameReceived being emitted" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Calling setInData with direction TX will result in frameSent being emitted" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Getters" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Invalid direction" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Port information" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "setCaption" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Test basic functionality" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Test restore - no caption" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Test restore - no name" | , |
"" | [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 | ( | "Test restore configuration" | , |
"" | [canrawview] | ||
) |
TEST_CASE | ( | "Test save configuration" | , |
"" | [canrawview] | ||
) |
std::shared_ptr<spdlog::logger> kDefaultLogger |