|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include "URL.h"#include "dbwrappers/test/DatabaseTestUtils.h"#include "filesystem/Directory.h"#include "filesystem/File.h"#include "media/LibraryQuery.h"#include "media/LibraryQueryReferences.h"#include "media/MediaSection.h"#include "music/MusicDatabase.h"#include "settings/Settings.h"#include "test/TestUtils.h"#include "utils/URIUtils.h"#include "utils/XBMCTinyXML2.h"#include <algorithm>#include <cstdint>#include <cstdlib>#include <optional>#include <ostream>#include <string>#include <string_view>#include <vector>#include <gtest/gtest.h>Functions | |
| TEST_F (TestLibraryQueryFile, AnXspFileLoadsAndSavesAsItWas) | |
| TEST_F (TestLibraryQueryFile, AnXspFileWithOnlyATypeSavesItsDefaults) | |
| TEST_F (TestLibraryQueryFile, ARuleValueWrittenAsTextIsSavedAsAValue) | |
| TEST (TestLibraryQuery, JsonLoadsAndSavesAsItWas) | |
| TEST (TestLibraryQuery, NestedRuleGroupsSurviveAJsonRoundTrip) | |
| TEST (TestLibraryQuery, APlaylistWithoutRulesOrOrderIsEmpty) | |
| TEST_P (TestLibraryQueryTypes, ATypeSurvivesXmlAndJson) | |
| INSTANTIATE_TEST_SUITE_P (Types, TestLibraryQueryTypes, ::testing::Values("songs", "albums", "artists", "movies", "tvshows", "episodes", "musicvideos", "mixed")) | |
| TEST_F (TestLibraryQueryFile, AnXspFileWithoutATypeItCanBeDoesNotLoad) | |
| TEST (TestLibraryQuery, JsonWithoutATypeItCanBeDoesNotLoad) | |
| TEST_F (TestLibraryQueryReferences, APlaylistNamingItselfIsRefused) | |
| TEST_F (TestLibraryQueryReferences, PlaylistsNamingEachOtherAreRefused) | |
| TEST_F (TestLibraryQueryReferences, APlaylistNamingAMissingPlaylistIsRefused) | |
| TEST_F (TestLibraryQueryReferences, APlaylistNamingOneWhoseRulesItCannotTakeIsRefused) | |
| TEST_F (TestLibraryQueryReferences, APlaylistNamedOnTwoBranchesGivesItsRulesOnBoth) | |
| TEST_F (TestLibraryQueryReferences, APlaylistWithoutRulesHoldsEverything) | |
| TEST_F (TestLibraryQueryReferences, AMixedPlaylistTakesTheRulesOfOneInTheMixedFolder) | |
| TEST_F (TestLibraryQueryReferences, AMixedPlaylistTakesASongsPlaylistsRulesForItsSongsOnly) | |
| TEST_F (TestLibraryQueryReferences, AMixedPlaylistTakesAMusicVideoPlaylistsRulesForItsMusicVideosOnly) | |
| TEST_F (TestLibraryQueryReferences, AVirtualFolderRuleAddsNothingToTheClause) | |
| TEST_F (TestLibraryQueryReferences, TheVirtualFoldersOfAPlaylistNamedTwiceAreListedOnce) | |
| TEST_F (TestLibraryQueryReferences, AMixedPlaylistFindsAMusicVideoPlaylistAsAVirtualFolder) | |
| TEST_F (TestLibraryQueryReferences, APlaylistRuleGivesTheClauseOfThePlaylistItNames) | |
| TEST_F (TestLibraryQueryReferences, ASongsPlaylistTakesAMixedPlaylistsRulesAsSongRules) | |
| TEST_F (TestLibraryQueryReferences, AMixedPlaylistNamedByASongsPlaylistFindsWhatItNames) | |
| TEST (TestLibraryQuery, ThePerformersAreSavedAsTheTypeCallsThem) | |
| TEST (TestLibraryQuery, JsonGroupedByWhatIsNoGroupDoesNotLoad) | |
| TEST_F (TestLibraryQueryFile, AnXspFileGroupedByWhatIsNoGroupDoesNotLoad) | |
| TEST (TestLibraryQuery, AQueryPutsOnlyTheLimitAndOrderItStatesIntoASorting) | |
| TEST_P (TestLibraryQueryAppliesTo, AQueryAppliesToTheListingsOfItsItemsAndItsGroups) | |
| INSTANTIATE_TEST_SUITE_P (Listings, TestLibraryQueryAppliesTo, ::testing::ValuesIn(LISTINGS)) | |
| TEST (TestLibraryQuery, WhatSongsAndAlbumsOfferDoesNotFollowTheOriginalDateSetting) | |
| TEST (TestLibraryQuery, AMixedPlaylistOffersTheFieldsSongsAndMusicVideosBothHave) | |
| TEST_F (TestLibraryQueryFile, AnXspFileSkipsCommentsAndRulesWithoutAField) | |
| TEST_F (TestLibraryQueryFile, AFileThatIsNotAnXspDoesNotLoad) | |
| TEST_F (TestLibraryQueryFile, AnUnescapedAmpersandIsKept) | |
| TEST_F (TestLibraryQueryFile, ALatin1FileIsReadAsUtf8) | |
| TEST_F (TestLibraryQueryFile, OpeningAnXspReadsItsNameAndType) | |
| TEST (TestLibraryQuery, ALibraryNodeLoadsAsAQueryOfItsType) | |
| INSTANTIATE_TEST_SUITE_P | ( | Listings | , |
| TestLibraryQueryAppliesTo | , | ||
| ::testing::ValuesIn(LISTINGS) | ) |
| INSTANTIATE_TEST_SUITE_P | ( | Types | , |
| TestLibraryQueryTypes | , | ||
| ::testing::Values("songs", "albums", "artists", "movies", "tvshows", "episodes", "musicvideos", "mixed") | ) |
| TEST | ( | TestLibraryQuery | , |
| ALibraryNodeLoadsAsAQueryOfItsType | ) |
| TEST | ( | TestLibraryQuery | , |
| AMixedPlaylistOffersTheFieldsSongsAndMusicVideosBothHave | ) |
| TEST | ( | TestLibraryQuery | , |
| APlaylistWithoutRulesOrOrderIsEmpty | ) |
| TEST | ( | TestLibraryQuery | , |
| AQueryPutsOnlyTheLimitAndOrderItStatesIntoASorting | ) |
| TEST | ( | TestLibraryQuery | , |
| JsonGroupedByWhatIsNoGroupDoesNotLoad | ) |
| TEST | ( | TestLibraryQuery | , |
| JsonLoadsAndSavesAsItWas | ) |
| TEST | ( | TestLibraryQuery | , |
| JsonWithoutATypeItCanBeDoesNotLoad | ) |
| TEST | ( | TestLibraryQuery | , |
| NestedRuleGroupsSurviveAJsonRoundTrip | ) |
| TEST | ( | TestLibraryQuery | , |
| ThePerformersAreSavedAsTheTypeCallsThem | ) |
| TEST | ( | TestLibraryQuery | , |
| WhatSongsAndAlbumsOfferDoesNotFollowTheOriginalDateSetting | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AFileThatIsNotAnXspDoesNotLoad | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| ALatin1FileIsReadAsUtf8 | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnUnescapedAmpersandIsKept | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnXspFileGroupedByWhatIsNoGroupDoesNotLoad | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnXspFileLoadsAndSavesAsItWas | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnXspFileSkipsCommentsAndRulesWithoutAField | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnXspFileWithOnlyATypeSavesItsDefaults | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| AnXspFileWithoutATypeItCanBeDoesNotLoad | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| ARuleValueWrittenAsTextIsSavedAsAValue | ) |
| TEST_F | ( | TestLibraryQueryFile | , |
| OpeningAnXspReadsItsNameAndType | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AMixedPlaylistFindsAMusicVideoPlaylistAsAVirtualFolder | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AMixedPlaylistNamedByASongsPlaylistFindsWhatItNames | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AMixedPlaylistTakesAMusicVideoPlaylistsRulesForItsMusicVideosOnly | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AMixedPlaylistTakesASongsPlaylistsRulesForItsSongsOnly | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AMixedPlaylistTakesTheRulesOfOneInTheMixedFolder | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistNamedOnTwoBranchesGivesItsRulesOnBoth | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistNamingAMissingPlaylistIsRefused | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistNamingItselfIsRefused | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistNamingOneWhoseRulesItCannotTakeIsRefused | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistRuleGivesTheClauseOfThePlaylistItNames | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| APlaylistWithoutRulesHoldsEverything | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| ASongsPlaylistTakesAMixedPlaylistsRulesAsSongRules | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| AVirtualFolderRuleAddsNothingToTheClause | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| PlaylistsNamingEachOtherAreRefused | ) |
| TEST_F | ( | TestLibraryQueryReferences | , |
| TheVirtualFoldersOfAPlaylistNamedTwiceAreListedOnce | ) |
| TEST_P | ( | TestLibraryQueryAppliesTo | , |
| AQueryAppliesToTheListingsOfItsItemsAndItsGroups | ) |
| TEST_P | ( | TestLibraryQueryTypes | , |
| ATypeSurvivesXmlAndJson | ) |