Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
translation_loader_test.cpp File Reference
#include "gtest/gtest.h"
#include <QByteArray>
#include <QCoreApplication>
#include <QDir>
#include <QLibraryInfo>
#include <QList>
#include <QSet>
#include <QString>
#include <QStringList>
#include <QStringLiteral>
#include <QTemporaryDir>
#include <QTranslator>
#include <libcockatrice/utility/translation_loader.h>
#include <string>
Include dependency graph for translation_loader_test.cpp:

Macros

#define TRANSLATION_LOADER_TEST_DIR   ""

Functions

 TEST (TranslationLoaderTest, LoadsFromTheFirstDirectoryHoldingTheFile)
 TEST (TranslationLoaderTest, LoadedTranslatorResolvesTheTranslatedString)
 TEST (TranslationLoaderTest, SeparateTranslatorsKeepTheirOwnFiles)
 TEST (TranslationLoaderTest, ExistingDirectoryWithoutTheFileIsMissing)
 TEST (TranslationLoaderTest, NonexistentDirectoriesAreNotSearched)
 TEST (TranslationLoaderTest, EmptyDirectoryEntriesAreSkipped)
 TEST (TranslationLoaderTest, LanguageVariantsFallBackToTheBaseLanguage)
 TEST (TranslationLoaderTest, QtTranslationCandidatesCoverTheUsualInstallLayouts)
 TEST (TranslationLoaderTest, QtTranslationPathsOnlyHoldExistingDirectories)
 TEST (TranslationLoaderTest, LoadApplicationUsesThePrefixAndTheLanguage)
 TEST (TranslationLoaderTest, ABuildTreeFindsTheTranslationsNextToTheExecutable)
 TEST (TranslationLoaderTest, ApplicationTranslationPathsHoldNoDuplicates)
 TEST (TranslationLoaderTest, AvailableLanguagesListsTheTranslationsThatCanBeLoaded)
 TEST (TranslationLoaderTest, LoadApplicationReportsAMissingTranslationDirectory)
 TEST (TranslationLoaderTest, UnsetLanguageLoadsNothing)
int main (int argc, char **argv)

Macro Definition Documentation

◆ TRANSLATION_LOADER_TEST_DIR

#define TRANSLATION_LOADER_TEST_DIR   ""

Function Documentation

◆ main()

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

◆ TEST() [1/15]

TEST ( TranslationLoaderTest ,
ABuildTreeFindsTheTranslationsNextToTheExecutable  )
Here is the call graph for this function:

◆ TEST() [2/15]

TEST ( TranslationLoaderTest ,
ApplicationTranslationPathsHoldNoDuplicates  )
Here is the call graph for this function:

◆ TEST() [3/15]

TEST ( TranslationLoaderTest ,
AvailableLanguagesListsTheTranslationsThatCanBeLoaded  )
Here is the call graph for this function:

◆ TEST() [4/15]

TEST ( TranslationLoaderTest ,
EmptyDirectoryEntriesAreSkipped  )
Here is the call graph for this function:

◆ TEST() [5/15]

TEST ( TranslationLoaderTest ,
ExistingDirectoryWithoutTheFileIsMissing  )
Here is the call graph for this function:

◆ TEST() [6/15]

TEST ( TranslationLoaderTest ,
LanguageVariantsFallBackToTheBaseLanguage  )
Here is the call graph for this function:

◆ TEST() [7/15]

TEST ( TranslationLoaderTest ,
LoadApplicationReportsAMissingTranslationDirectory  )
Here is the call graph for this function:

◆ TEST() [8/15]

TEST ( TranslationLoaderTest ,
LoadApplicationUsesThePrefixAndTheLanguage  )
Here is the call graph for this function:

◆ TEST() [9/15]

TEST ( TranslationLoaderTest ,
LoadedTranslatorResolvesTheTranslatedString  )
Here is the call graph for this function:

◆ TEST() [10/15]

TEST ( TranslationLoaderTest ,
LoadsFromTheFirstDirectoryHoldingTheFile  )
Here is the call graph for this function:

◆ TEST() [11/15]

TEST ( TranslationLoaderTest ,
NonexistentDirectoriesAreNotSearched  )
Here is the call graph for this function:

◆ TEST() [12/15]

TEST ( TranslationLoaderTest ,
QtTranslationCandidatesCoverTheUsualInstallLayouts  )
Here is the call graph for this function:

◆ TEST() [13/15]

TEST ( TranslationLoaderTest ,
QtTranslationPathsOnlyHoldExistingDirectories  )
Here is the call graph for this function:

◆ TEST() [14/15]

TEST ( TranslationLoaderTest ,
SeparateTranslatorsKeepTheirOwnFiles  )
Here is the call graph for this function:

◆ TEST() [15/15]

TEST ( TranslationLoaderTest ,
UnsetLanguageLoadsNothing  )
Here is the call graph for this function: