Cockatrice/tests/loading_from_clipboard/clipboard_testing.h
Lukas Brübach ae78aa1468 Modularize and Doxygen decklist.cpp
Took 1 hour 40 minutes

Took 11 seconds
2025-09-05 02:22:19 +02:00

28 lines
732 B
C++

#ifndef CLIPBOARD_TESTING_H
#define CLIPBOARD_TESTING_H
#include "../../common/deck_list.h"
#include "gtest/gtest.h"
// using std types because qt types aren't understood by gtest (without this you'll get less nice errors)
using CardRows = QVector<std::pair<std::string, int>>;
struct Result
{
std::string name;
std::string comments;
CardRows mainboard;
CardRows sideboard;
Result(std::string _name, std::string _comments, CardRows _mainboard, CardRows _sideboard)
: name(_name), comments(_comments), mainboard(_mainboard), sideboard(_sideboard)
{
}
};
void testEmpty(const QString &clipboard);
void testDeck(const QString &clipboard, const Result &result);
#endif // CLIPBOARD_TESTING_H