|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#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) | |
| TEST_F | ( | TestEpgDatabase | , |
| APersistedTagKeepsAFarFutureTime | ) |
The write is the other half: a tag persisted with a far future time reads back as itself.
| 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 | ( | TestEpgDatabase | , |
| ATagKeepsAFarFutureTime | ) |
The column holds a 64-bit count, so a far future time reads back as stored.
| TEST_F | ( | TestEpgDatabase | , |
| TheFirstAndLastDatesAreNotWrapped | ) |
| TEST_F | ( | TestEpgDatabase | , |
| TheLastEndTimeIsNotWrapped | ) |
The guide window is sized from the last end time.
| TEST_F | ( | TestEpgDatabase | , |
| TheMaxEndTimeIsNotWrapped | ) |
| TEST_F | ( | TestEpgDatabase | , |
| TheMinStartTimeIsNotWrapped | ) |