Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestDatabaseUtils.cpp File Reference
#include "dbwrappers/qry_dat.h"
#include "music/MusicDatabase.h"
#include "utils/DatabaseUtils.h"
#include "utils/StringUtils.h"
#include "utils/Variant.h"
#include "video/VideoDatabase.h"
#include <gtest/gtest.h>

Classes

class  TestDatabaseUtilsHelper
 

Functions

 TEST (TestDatabaseUtils, GetField_None)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeAlbum)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeSong)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeMusicVideo)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeMovie)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeTvShow)
 
 TEST (TestDatabaseUtils, GetField_MediaTypeEpisode)
 
 TEST (TestDatabaseUtils, GetField_FieldRandom)
 
 TEST (TestDatabaseUtils, GetFieldIndex_None)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeAlbum)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeSong)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeMusicVideo)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeMovie)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeTvShow)
 
 TEST (TestDatabaseUtils, GetFieldIndex_MediaTypeEpisode)
 
 TEST (TestDatabaseUtils, GetSelectFields)
 
 TEST (TestDatabaseUtils, GetFieldValue)
 
 TEST (TestDatabaseUtils, BuildLimitClause)
 

Function Documentation

◆ TEST() [1/18]

TEST ( TestDatabaseUtils ,
BuildLimitClause  )
Todo
Need some way to test this function

◆ TEST() [2/18]

TEST ( TestDatabaseUtils ,
GetField_FieldRandom  )

◆ TEST() [3/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeAlbum  )

◆ TEST() [4/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeEpisode  )

◆ TEST() [5/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeMovie  )

◆ TEST() [6/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeMusicVideo  )

◆ TEST() [7/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeSong  )

◆ TEST() [8/18]

TEST ( TestDatabaseUtils ,
GetField_MediaTypeTvShow  )

◆ TEST() [9/18]

TEST ( TestDatabaseUtils ,
GetField_None  )

◆ TEST() [10/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeAlbum  )
Todo
Should enums in CMusicDatabase be made public instead?

◆ TEST() [11/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeEpisode  )

◆ TEST() [12/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeMovie  )

◆ TEST() [13/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeMusicVideo  )

◆ TEST() [14/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeSong  )

◆ TEST() [15/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_MediaTypeTvShow  )

◆ TEST() [16/18]

TEST ( TestDatabaseUtils ,
GetFieldIndex_None  )

◆ TEST() [17/18]

TEST ( TestDatabaseUtils ,
GetFieldValue  )

◆ TEST() [18/18]

TEST ( TestDatabaseUtils ,
GetSelectFields  )