/*
    SPDX-FileCopyrightText: 2012 Rishab Arora <ra.rishab@gmail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include "ksparser.h"

#include <QDebug>

#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QtTest/QTest>
#else
#include <QTest>
#endif

class TestFWParser : public QObject
{
        Q_OBJECT
    public:
        TestFWParser();
        ~TestFWParser() override = default;
    private Q_SLOTS:
        void initTestCase();
        void cleanupTestCase();
        void MixedInputs();
        void OnlySpaceRow();
        void NoRow();
        void FWReadMissingFile();

    private:
        QStringList test_cases_;
        QList<int> widths_;
        QList<QPair<QString, KSParser::DataTypes>> sequence_;
        QString test_file_name_;
        KSParser *test_parser_ { nullptr };
};
