Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestEpgDatabase.cpp File Reference
#include "ServiceBroker.h"
#include "XBDateTime.h"
#include "dbwrappers/Database.h"
#include "filesystem/SpecialProtocol.h"
#include "pvr/epg/EpgDatabase.h"
#include "pvr/epg/EpgInfoTag.h"
#include "settings/AdvancedSettings.h"
#include "settings/SettingsComponent.h"
#include "utils/StringUtils.h"
#include <cstdint>
#include <memory>
#include <string>
#include <gtest/gtest.h>

Functions

 TEST_F (TestEpgDatabase, ATagKeepsAFarFutureTime)
 
 TEST_F (TestEpgDatabase, APersistedTagKeepsAFarFutureTime)
 
 TEST_F (TestEpgDatabase, ATagIsFoundByAFarFutureStartTime)
 
 TEST_F (TestEpgDatabase, TheLastEndTimeIsNotWrapped)
 
 TEST_F (TestEpgDatabase, TheFirstAndLastDatesAreNotWrapped)
 
 TEST_F (TestEpgDatabase, TheMaxEndTimeIsNotWrapped)
 
 TEST_F (TestEpgDatabase, TheMinStartTimeIsNotWrapped)
 

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( TestEpgDatabase ,
APersistedTagKeepsAFarFutureTime  )

The write is the other half: a tag persisted with a far future time reads back as itself.

◆ TEST_F() [2/7]

TEST_F ( TestEpgDatabase ,
ATagIsFoundByAFarFutureStartTime  )

A far future time is written into a query at the width the column holds, so it selects the row it names rather than one an overflow landed on.

◆ TEST_F() [3/7]

TEST_F ( TestEpgDatabase ,
ATagKeepsAFarFutureTime  )

The column holds a 64-bit count, so a far future time reads back as stored.

◆ TEST_F() [4/7]

TEST_F ( TestEpgDatabase ,
TheFirstAndLastDatesAreNotWrapped  )

◆ TEST_F() [5/7]

TEST_F ( TestEpgDatabase ,
TheLastEndTimeIsNotWrapped  )

The guide window is sized from the last end time.

◆ TEST_F() [6/7]

TEST_F ( TestEpgDatabase ,
TheMaxEndTimeIsNotWrapped  )

◆ TEST_F() [7/7]

TEST_F ( TestEpgDatabase ,
TheMinStartTimeIsNotWrapped  )