diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:49:10 +1200 |
commit | d24f813f3f2a05c112e803e4256b53535895fc98 (patch) | |
tree | 601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /tests/mocks/CardPack_mock.cpp |
Diffstat (limited to 'tests/mocks/CardPack_mock.cpp')
-rw-r--r-- | tests/mocks/CardPack_mock.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/mocks/CardPack_mock.cpp b/tests/mocks/CardPack_mock.cpp new file mode 100644 index 0000000..159e0de --- /dev/null +++ b/tests/mocks/CardPack_mock.cpp @@ -0,0 +1,31 @@ +#include "CardPack_mock.h" + +void CardPackMock::addStudyRecord(const QString cardId, const StudyRecord& studyRecord) +{ + studyRecords.insert(cardId, studyRecord); +} + +QList<StudyRecord> CardPackMock::getStudyRecords(QString cardId) const +{ + return studyRecords.values(cardId); +} + +StudyRecord CardPackMock::getStudyRecord(QString cardId) const +{ + return studyRecords.values(cardId).first(); +} + +QList<DicRecord*> CardPackMock::getRecords() const +{ + return QList<DicRecord*>(); +} + +const Field* CardPackMock::getQuestionField() const +{ + return NULL; +} + +QList<const Field*> CardPackMock::getAnswerFields() const +{ + return QList<const Field*>(); +} |