Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
oracle_importer_test.cpp File Reference
#include "../../oracle/src/oracleimporter.h"
#include "../../oracle/src/raw_json_scanner.h"
#include "libcockatrice/card/card_info.h"
#include "gtest/gtest.h"
#include <QByteArray>
#include <QChar>
#include <QDate>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValueRef>
#include <QList>
#include <QMap>
#include <QObject>
#include <QPair>
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QSharedPointer>
#include <QString>
#include <QUuid>
#include <QVariant>
#include <QVariantMap>
#include <QtGlobal>
#include <libcockatrice/card/format/format_legality_rules.h>
#include <libcockatrice/card/set/card_set.h>
#include <libcockatrice/interfaces/noop_card_set_priority_controller.h>
#include <string>
#include <utility>
Include dependency graph for oracle_importer_test.cpp:

Classes

class  OracleImporterTest

Functions

 TEST_F (OracleImporterTest, SortAndReduceColorsSingleColor)
 TEST_F (OracleImporterTest, SortAndReduceColorsDeduplicates)
 TEST_F (OracleImporterTest, SortAndReduceColorsSortsWUBRG)
 TEST_F (OracleImporterTest, SortAndReduceColorsAllFive)
 TEST_F (OracleImporterTest, SortAndReduceColorIdentity)
 TEST_F (OracleImporterTest, SingleColorNotSorted)
 TEST_F (OracleImporterTest, NewCardKeepsLegalityProperties)
 TEST_F (OracleImporterTest, LegalityMergeAllowedWhenCardHasNoLegalities)
 TEST_F (OracleImporterTest, LegalityGuardPreservesFirstPrinting)
 TEST_F (OracleImporterTest, CreateDefaultMagicFormatsContainsExpectedFormats)
 TEST_F (OracleImporterTest, CreateDefaultMagicFormatsSingletonDeckSizes)
 TEST_F (OracleImporterTest, CreateDefaultMagicFormatsVintageHasRestricted)
 TEST_F (OracleImporterTest, CreateDefaultMagicFormatsRegexMatchesBasicLands)
 TEST_F (OracleImporterTest, CreateDefaultMagicFormatsCaching)
 TEST_F (OracleImporterTest, ReadSetsFromByteArrayValidJson)
 TEST_F (OracleImporterTest, ReadSetsFromByteArrayInvalidJson)
 TEST_F (OracleImporterTest, ReadSetsFromByteArrayEmptyData)
 TEST_F (OracleImporterTest, ReadSetsFromByteArrayCapitalizesSetType)
 TEST_F (OracleImporterTest, ReadSetsFromByteArraySortsSetsByName)
 TEST_F (OracleImporterTest, SplitCardColorIdentityConcatenated)
 TEST_F (OracleImporterTest, SplitCardColorsConcatenated)
 TEST_F (OracleImporterTest, ManaCostStripsBraces)
 TEST_F (OracleImporterTest, NumericManaValueCoercedToCmc)
 TEST_F (OracleImporterTest, LegacyConvertedManaCostCoercedToCmc)
 TEST_F (OracleImporterTest, DuplicateCardNameReturnsExisting)
 TEST_F (OracleImporterTest, AELigatureReplaced)
 TEST_F (OracleImporterTest, ApostropheNormalized)
 TEST_F (OracleImporterTest, ScanSetRangesMatchFullJsonParse)
 TEST_F (OracleImporterTest, ScanSetRangesDecodesEscapesAndCountsCards)
 TEST_F (OracleImporterTest, ScanSetRangesRejectsInvalidJson)
 TEST_F (OracleImporterTest, ScanSetRangesMatchesFullJsonParseVerdicts)
 TEST_F (OracleImporterTest, ScanSetRangesRejectsDeepNesting)
 TEST_F (OracleImporterTest, ScanSetRangesAcceptsQtMaxNesting)
 TEST_F (OracleImporterTest, StartImportParsesSetsLazily)
 TEST (OracleScanProgress, ScanProgressReportsMonotonicBytesToTotal)
 TEST (OracleScanProgress, ScanWithoutCallbackStillParses)
 TEST_F (OracleImporterTest, ReadSetsFromByteArrayEmitsScanProgress)
 TEST_F (OracleImporterTest, DisablingProgressReportingSuppressesScanEmissions)
 TEST_F (OracleImporterTest, ImportsLocalizedTextForRequestedLanguage)
 TEST_F (OracleImporterTest, ImportsLocalizedNameAndTextForMultiFaceCards)
 TEST_F (OracleImporterTest, MultiFaceCardsWithoutCompleteForeignTextKeepEnglishText)
 TEST_F (OracleImporterTest, DefaultLanguageSkipsForeignData)
 TEST_F (OracleImporterTest, UnsupportedLanguageSkipsForeignData)
 TEST_F (OracleImporterTest, NonMatchingLanguageNotCollected)
 TEST_F (OracleImporterTest, HigherPrioritySetWinsForReprint)
 TEST_F (OracleImporterTest, HigherPrioritySplitSetWinsForReprint)
 TEST_F (OracleImporterTest, StartImportAppliesLocalizedData)
int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )
Here is the call graph for this function:

◆ TEST() [1/2]

TEST ( OracleScanProgress ,
ScanProgressReportsMonotonicBytesToTotal  )
Here is the call graph for this function:

◆ TEST() [2/2]

TEST ( OracleScanProgress ,
ScanWithoutCallbackStillParses  )
Here is the call graph for this function:

◆ TEST_F() [1/45]

TEST_F ( OracleImporterTest ,
AELigatureReplaced  )
Here is the call graph for this function:

◆ TEST_F() [2/45]

TEST_F ( OracleImporterTest ,
ApostropheNormalized  )
Here is the call graph for this function:

◆ TEST_F() [3/45]

TEST_F ( OracleImporterTest ,
CreateDefaultMagicFormatsCaching  )
Here is the call graph for this function:

◆ TEST_F() [4/45]

TEST_F ( OracleImporterTest ,
CreateDefaultMagicFormatsContainsExpectedFormats  )
Here is the call graph for this function:

◆ TEST_F() [5/45]

TEST_F ( OracleImporterTest ,
CreateDefaultMagicFormatsRegexMatchesBasicLands  )
Here is the call graph for this function:

◆ TEST_F() [6/45]

TEST_F ( OracleImporterTest ,
CreateDefaultMagicFormatsSingletonDeckSizes  )
Here is the call graph for this function:

◆ TEST_F() [7/45]

TEST_F ( OracleImporterTest ,
CreateDefaultMagicFormatsVintageHasRestricted  )
Here is the call graph for this function:

◆ TEST_F() [8/45]

TEST_F ( OracleImporterTest ,
DefaultLanguageSkipsForeignData  )
Here is the call graph for this function:

◆ TEST_F() [9/45]

TEST_F ( OracleImporterTest ,
DisablingProgressReportingSuppressesScanEmissions  )
Here is the call graph for this function:

◆ TEST_F() [10/45]

TEST_F ( OracleImporterTest ,
DuplicateCardNameReturnsExisting  )
Here is the call graph for this function:

◆ TEST_F() [11/45]

TEST_F ( OracleImporterTest ,
HigherPrioritySetWinsForReprint  )
Here is the call graph for this function:

◆ TEST_F() [12/45]

TEST_F ( OracleImporterTest ,
HigherPrioritySplitSetWinsForReprint  )
Here is the call graph for this function:

◆ TEST_F() [13/45]

TEST_F ( OracleImporterTest ,
ImportsLocalizedNameAndTextForMultiFaceCards  )
Here is the call graph for this function:

◆ TEST_F() [14/45]

TEST_F ( OracleImporterTest ,
ImportsLocalizedTextForRequestedLanguage  )
Here is the call graph for this function:

◆ TEST_F() [15/45]

TEST_F ( OracleImporterTest ,
LegacyConvertedManaCostCoercedToCmc  )
Here is the call graph for this function:

◆ TEST_F() [16/45]

TEST_F ( OracleImporterTest ,
LegalityGuardPreservesFirstPrinting  )
Here is the call graph for this function:

◆ TEST_F() [17/45]

TEST_F ( OracleImporterTest ,
LegalityMergeAllowedWhenCardHasNoLegalities  )
Here is the call graph for this function:

◆ TEST_F() [18/45]

TEST_F ( OracleImporterTest ,
ManaCostStripsBraces  )
Here is the call graph for this function:

◆ TEST_F() [19/45]

TEST_F ( OracleImporterTest ,
MultiFaceCardsWithoutCompleteForeignTextKeepEnglishText  )
Here is the call graph for this function:

◆ TEST_F() [20/45]

TEST_F ( OracleImporterTest ,
NewCardKeepsLegalityProperties  )
Here is the call graph for this function:

◆ TEST_F() [21/45]

TEST_F ( OracleImporterTest ,
NonMatchingLanguageNotCollected  )
Here is the call graph for this function:

◆ TEST_F() [22/45]

TEST_F ( OracleImporterTest ,
NumericManaValueCoercedToCmc  )
Here is the call graph for this function:

◆ TEST_F() [23/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArrayCapitalizesSetType  )
Here is the call graph for this function:

◆ TEST_F() [24/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArrayEmitsScanProgress  )
Here is the call graph for this function:

◆ TEST_F() [25/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArrayEmptyData  )
Here is the call graph for this function:

◆ TEST_F() [26/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArrayInvalidJson  )
Here is the call graph for this function:

◆ TEST_F() [27/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArraySortsSetsByName  )
Here is the call graph for this function:

◆ TEST_F() [28/45]

TEST_F ( OracleImporterTest ,
ReadSetsFromByteArrayValidJson  )
Here is the call graph for this function:

◆ TEST_F() [29/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesAcceptsQtMaxNesting  )
Here is the call graph for this function:

◆ TEST_F() [30/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesDecodesEscapesAndCountsCards  )
Here is the call graph for this function:

◆ TEST_F() [31/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesMatchesFullJsonParseVerdicts  )
Here is the call graph for this function:

◆ TEST_F() [32/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesMatchFullJsonParse  )
Here is the call graph for this function:

◆ TEST_F() [33/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesRejectsDeepNesting  )
Here is the call graph for this function:

◆ TEST_F() [34/45]

TEST_F ( OracleImporterTest ,
ScanSetRangesRejectsInvalidJson  )
Here is the call graph for this function:

◆ TEST_F() [35/45]

TEST_F ( OracleImporterTest ,
SingleColorNotSorted  )
Here is the call graph for this function:

◆ TEST_F() [36/45]

TEST_F ( OracleImporterTest ,
SortAndReduceColorIdentity  )
Here is the call graph for this function:

◆ TEST_F() [37/45]

TEST_F ( OracleImporterTest ,
SortAndReduceColorsAllFive  )
Here is the call graph for this function:

◆ TEST_F() [38/45]

TEST_F ( OracleImporterTest ,
SortAndReduceColorsDeduplicates  )
Here is the call graph for this function:

◆ TEST_F() [39/45]

TEST_F ( OracleImporterTest ,
SortAndReduceColorsSingleColor  )
Here is the call graph for this function:

◆ TEST_F() [40/45]

TEST_F ( OracleImporterTest ,
SortAndReduceColorsSortsWUBRG  )
Here is the call graph for this function:

◆ TEST_F() [41/45]

TEST_F ( OracleImporterTest ,
SplitCardColorIdentityConcatenated  )
Here is the call graph for this function:

◆ TEST_F() [42/45]

TEST_F ( OracleImporterTest ,
SplitCardColorsConcatenated  )
Here is the call graph for this function:

◆ TEST_F() [43/45]

TEST_F ( OracleImporterTest ,
StartImportAppliesLocalizedData  )
Here is the call graph for this function:

◆ TEST_F() [44/45]

TEST_F ( OracleImporterTest ,
StartImportParsesSetsLazily  )
Here is the call graph for this function:

◆ TEST_F() [45/45]

TEST_F ( OracleImporterTest ,
UnsupportedLanguageSkipsForeignData  )
Here is the call graph for this function: