mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-20 15:57:13 +02:00
.github
bin
module
vendor
CPR
ConcurrentQueue
Fmt
JSMN
MaxmindDB
POCO
ApacheConnector
CppParser
CppUnit
Crypto
Data
Encodings
Foundation
cmake
include
samples
src
testsuite
src
ActiveDispatcherTest.cpp
ActiveDispatcherTest.h
ActiveMethodTest.cpp
ActiveMethodTest.h
ActivityTest.cpp
ActivityTest.h
AnyTest.cpp
AnyTest.h
ArrayTest.cpp
ArrayTest.h
AutoPtrTest.cpp
AutoPtrTest.h
AutoReleasePoolTest.cpp
AutoReleasePoolTest.h
Base32Test.cpp
Base32Test.h
Base64Test.cpp
Base64Test.h
BasicEventTest.cpp
BasicEventTest.h
BinaryReaderWriterTest.cpp
BinaryReaderWriterTest.h
ByteOrderTest.cpp
ByteOrderTest.h
CacheTestSuite.cpp
CacheTestSuite.h
ChannelTest.cpp
ChannelTest.h
ClassLoaderTest.cpp
ClassLoaderTest.h
ClockTest.cpp
ClockTest.h
ConditionTest.cpp
ConditionTest.h
CoreTest.cpp
CoreTest.h
CoreTestSuite.cpp
CoreTestSuite.h
CountingStreamTest.cpp
CountingStreamTest.h
CryptTestSuite.cpp
CryptTestSuite.h
DataURIStreamTest.cpp
DataURIStreamTest.h
DateTimeFormatterTest.cpp
DateTimeFormatterTest.h
DateTimeParserTest.cpp
DateTimeParserTest.h
DateTimeTest.cpp
DateTimeTest.h
DateTimeTestSuite.cpp
DateTimeTestSuite.h
DigestStreamTest.cpp
DigestStreamTest.h
DirectoryIteratorsTest.cpp
DirectoryIteratorsTest.h
DirectoryWatcherTest.cpp
DirectoryWatcherTest.h
Driver.cpp
DummyDelegate.cpp
DummyDelegate.h
DynamicFactoryTest.cpp
DynamicFactoryTest.h
DynamicTestSuite.cpp
DynamicTestSuite.h
EventTestSuite.cpp
EventTestSuite.h
ExpireCacheTest.cpp
ExpireCacheTest.h
ExpireLRUCacheTest.cpp
ExpireLRUCacheTest.h
FIFOBufferStreamTest.cpp
FIFOBufferStreamTest.h
FIFOEventTest.cpp
FIFOEventTest.h
FPETest.cpp
FPETest.h
FileChannelTest.cpp
FileChannelTest.h
FileStreamTest.cpp
FileStreamTest.h
FileTest.cpp
FileTest.h
FilesystemTestSuite.cpp
FilesystemTestSuite.h
FormatTest.cpp
FormatTest.h
FoundationTestSuite.cpp
FoundationTestSuite.h
GlobTest.cpp
GlobTest.h
HMACEngineTest.cpp
HMACEngineTest.h
HashMapTest.cpp
HashMapTest.h
HashSetTest.cpp
HashSetTest.h
HashTableTest.cpp
HashTableTest.h
HashingTestSuite.cpp
HashingTestSuite.h
HexBinaryTest.cpp
HexBinaryTest.h
LRUCacheTest.cpp
LRUCacheTest.h
LineEndingConverterTest.cpp
LineEndingConverterTest.h
LinearHashTableTest.cpp
LinearHashTableTest.h
ListMapTest.cpp
ListMapTest.h
LocalDateTimeTest.cpp
LocalDateTimeTest.h
LogStreamTest.cpp
LogStreamTest.h
LoggerTest.cpp
LoggerTest.h
LoggingFactoryTest.cpp
LoggingFactoryTest.h
LoggingRegistryTest.cpp
LoggingRegistryTest.h
LoggingTestSuite.cpp
LoggingTestSuite.h
MD4EngineTest.cpp
MD4EngineTest.h
MD5EngineTest.cpp
MD5EngineTest.h
ManifestTest.cpp
ManifestTest.h
MemoryPoolTest.cpp
MemoryPoolTest.h
MemoryStreamTest.cpp
MemoryStreamTest.h
NDCTest.cpp
NDCTest.h
NamedEventTest.cpp
NamedEventTest.h
NamedMutexTest.cpp
NamedMutexTest.h
NamedTuplesTest.cpp
NamedTuplesTest.h
NotificationCenterTest.cpp
NotificationCenterTest.h
NotificationQueueTest.cpp
NotificationQueueTest.h
NotificationsTestSuite.cpp
NotificationsTestSuite.h
NullStreamTest.cpp
NullStreamTest.h
NumberFormatterTest.cpp
NumberFormatterTest.h
NumberParserTest.cpp
NumberParserTest.h
ObjectPoolTest.cpp
ObjectPoolTest.h
OrderedContainersTest.cpp
OrderedContainersTest.h
PBKDF2EngineTest.cpp
PBKDF2EngineTest.h
PathTest.cpp
PathTest.h
PatternFormatterTest.cpp
PatternFormatterTest.h
PriorityEventTest.cpp
PriorityEventTest.h
PriorityNotificationQueueTest.cpp
PriorityNotificationQueueTest.h
ProcessTest.cpp
ProcessTest.h
ProcessesTestSuite.cpp
ProcessesTestSuite.h
RWLockTest.cpp
RWLockTest.h
RandomStreamTest.cpp
RandomStreamTest.h
RandomTest.cpp
RandomTest.h
RegularExpressionTest.cpp
RegularExpressionTest.h
SHA1EngineTest.cpp
SHA1EngineTest.h
SHA2EngineTest.cpp
SHA2EngineTest.h
SemaphoreTest.cpp
SemaphoreTest.h
SharedLibraryTest.cpp
SharedLibraryTest.h
SharedLibraryTestSuite.cpp
SharedLibraryTestSuite.h
SharedMemoryTest.cpp
SharedMemoryTest.h
SharedPtrTest.cpp
SharedPtrTest.h
SimpleFileChannelTest.cpp
SimpleFileChannelTest.h
SimpleHashTableTest.cpp
SimpleHashTableTest.h
StopwatchTest.cpp
StopwatchTest.h
StreamConverterTest.cpp
StreamConverterTest.h
StreamCopierTest.cpp
StreamCopierTest.h
StreamTokenizerTest.cpp
StreamTokenizerTest.h
StreamsTestSuite.cpp
StreamsTestSuite.h
StringTest.cpp
StringTest.h
StringTokenizerTest.cpp
StringTokenizerTest.h
TaskManagerTest.cpp
TaskManagerTest.h
TaskTest.cpp
TaskTest.h
TaskTestSuite.cpp
TaskTestSuite.h
TeeStreamTest.cpp
TeeStreamTest.h
TestApp.cpp
TestApp_WINCE.cpp
TestChannel.cpp
TestChannel.h
TestLibrary.cpp
TestPlugin.cpp
TestPlugin.h
TextBufferIteratorTest.cpp
TextBufferIteratorTest.h
TextConverterTest.cpp
TextConverterTest.h
TextEncodingTest.cpp
TextEncodingTest.h
TextIteratorTest.cpp
TextIteratorTest.h
TextTestSuite.cpp
TextTestSuite.h
ThreadLocalTest.cpp
ThreadLocalTest.h
ThreadPoolTest.cpp
ThreadPoolTest.h
ThreadTest.cpp
ThreadTest.h
ThreadingTestSuite.cpp
ThreadingTestSuite.h
TimedNotificationQueueTest.cpp
TimedNotificationQueueTest.h
TimerTest.cpp
TimerTest.h
TimespanTest.cpp
TimespanTest.h
TimestampTest.cpp
TimestampTest.h
TimezoneTest.cpp
TimezoneTest.h
TuplesTest.cpp
TuplesTest.h
TypeListTest.cpp
TypeListTest.h
URIStreamOpenerTest.cpp
URIStreamOpenerTest.h
URITest.cpp
URITest.h
URITestSuite.cpp
URITestSuite.h
UTF8StringTest.cpp
UTF8StringTest.h
UUIDGeneratorTest.cpp
UUIDGeneratorTest.h
UUIDTest.cpp
UUIDTest.h
UUIDTestSuite.cpp
UUIDTestSuite.h
UnicodeConverterTest.cpp
UnicodeConverterTest.h
UniqueExpireCacheTest.cpp
UniqueExpireCacheTest.h
UniqueExpireLRUCacheTest.cpp
UniqueExpireLRUCacheTest.h
VarTest.cpp
VarTest.h
WinCEDriver.cpp
WinDriver.cpp
ZLibTest.cpp
ZLibTest.h
ordered_map_util.h
CMakeLists.txt
Makefile
Makefile-Driver
Makefile-TestApp
Makefile-TestLibrary
TestApp_vs140.vcxproj
TestApp_vs140.vcxproj.filters
TestApp_vs150.vcxproj
TestApp_vs150.vcxproj.filters
TestApp_vs160.vcxproj
TestApp_vs160.vcxproj.filters
TestLibrary_vs140.vcxproj
TestLibrary_vs140.vcxproj.filters
TestLibrary_vs150.vcxproj
TestLibrary_vs150.vcxproj.filters
TestLibrary_vs160.vcxproj
TestLibrary_vs160.vcxproj.filters
TestSuite_vs140.vcxproj
TestSuite_vs140.vcxproj.filters
TestSuite_vs150.vcxproj
TestSuite_vs150.vcxproj.filters
TestSuite_vs160.vcxproj
TestSuite_vs160.vcxproj.filters
nonexistent.txt
testlibrary.opt
wcelibcex-1.0
CMakeLists.txt
Foundation_vs140.sln
Foundation_vs140.vcxproj
Foundation_vs140.vcxproj.filters
Foundation_vs150.sln
Foundation_vs150.vcxproj
Foundation_vs150.vcxproj.filters
Foundation_vs160.sln
Foundation_vs160.vcxproj
Foundation_vs160.vcxproj.filters
Makefile
extradirs
JSON
JWT
MongoDB
Net
NetSSL_OpenSSL
NetSSL_Win
PDF
PageCompiler
PocoDoc
ProGen
Redis
SevenZip
Util
XML
Zip
appveyor
build
cmake
contrib
doc
packaging
patches
release
travis
.gitattributes
.gitignore
.gitmodules
.travis.yml
CHANGELOG
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
Makefile
NEWS
README
README.md
VERSION
appveyor.yml
build_cmake.cmd
build_cmake.sh
build_vs140.cmd
build_vs150.cmd
build_vs160.cmd
buildwin.cmd
buildwin.ps1
components
configure
cppignore.lnx
cppignore.win
env.bat
env.sh
libversion
PUGIXML
SimpleIni
Squirrel
TinyDir
ZMQ
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
56 lines
952 B
C++
56 lines
952 B
C++
//
|
|
// DateTimeTest.h
|
|
//
|
|
// Definition of the DateTimeTest class.
|
|
//
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef DateTimeTest_INCLUDED
|
|
#define DateTimeTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class DateTimeTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
DateTimeTest(const std::string& name);
|
|
~DateTimeTest();
|
|
|
|
void testTimestamp();
|
|
void testJulian();
|
|
void testGregorian();
|
|
void testConversions();
|
|
void testStatics();
|
|
void testCalcs();
|
|
void testAMPM();
|
|
void testRelational();
|
|
void testArithmetics();
|
|
void testSwap();
|
|
void testUsage();
|
|
void testSetYearDay();
|
|
void testIsValid();
|
|
void testDayOfWeek();
|
|
void testIncrementDecrement();
|
|
void testUTC();
|
|
void testLeapSeconds();
|
|
void testTM();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // DateTimeTest_INCLUDED
|