API
 
Loading...
Searching...
No Matches
fileTimes_test.cpp File Reference
#include <iostream>
#include "../../../tests/testXWC.hpp"
#include "../fileTimes.hpp"
Include dependency graph for fileTimes_test.cpp:

Go to the source code of this file.

Namespaces

namespace  libXWCTest
 Namespace for all libXWC tests.
 
namespace  libXWCTest::fileTest
 Namespace for XWC::file tests.
 
namespace  libXWCTest::fileTest::fileTimesTest
 Namespace for XWC::file::fileTimes tests.
 

Macros

#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_BAD_ALLOC_ns
 
#define XWCTEST_TIMESTAMP_THROW_BAD_ALLOC
 
#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_FORMAT_ERROR_ns
 
#define XWCTEST_TIMESTAMP_THROW_FORMAT_ERROR
 
#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_EXCEPTION_ns
 
#define XWCTEST_TIMESTAMP_THROW_EXCEPTION
 
#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_GMTIME_OTHER_ns
 
#define XWCTEST_TIMESTAMP_GMTIME_OTHER
 
#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_BAD_ALLOC_ns
 
#define XWCTEST_FILETIMERELPATH_THROW_BAD_ALLOC
 
#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_FORMAT_ERROR_ns
 
#define XWCTEST_FILETIMERELPATH_THROW_FORMAT_ERROR
 
#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_EXCEPTION_ns
 
#define XWCTEST_FILETIMERELPATH_THROW_EXCEPTION
 
#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATHSTRING_THROW_BAD_ALLOC_ns
 
#define XWCTEST_FILETIMERELPATHSTRING_THROW_BAD_ALLOC
 
#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATHSTRING_THROW_EXCEPTION_ns
 
#define XWCTEST_FILETIMERELPATHSTRING_THROW_EXCEPTION
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_BAD_ALLOC_ns
 
#define XWCTEST_PARSETIMESTAMP_THROW_BAD_ALLOC
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_OUT_OF_RANGE_ns
 
#define XWCTEST_PARSETIMESTAMP_THROW_OUT_OF_RANGE
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_EXCEPTION_ns
 
#define XWCTEST_PARSETIMESTAMP_THROW_EXCEPTION
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_BAD_ALLOC_ns
 
#define XWCTEST_PARSEFILEPATH_THROW_BAD_ALLOC
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_OUT_OF_RANGE_ns
 
#define XWCTEST_PARSEFILEPATH_THROW_OUT_OF_RANGE
 
#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_EXCEPTION_ns
 
#define XWCTEST_PARSEFILEPATH_THROW_EXCEPTION
 

Functions

 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp string and broken-down time for a given time", "[libMagAOX::file::fileTimes]")
 Getting timestamp string and broken-down time for a given time.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp and broken-down time with errors", "[libMagAOX::file::fileTimes]")
 Getting timestamp and broken-down time with errors.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp only with errors", "[libMagAOX::file::fileTimes]")
 Getting timestamp only with errors.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp string and broken-down time causes bad_alloc", "[libMagAOX::file::fileTimes]")
 Getting timestamp string and broken-down time causes bad_alloc.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp only causes bad_alloc", "[libMagAOX::file::fileTimes]")
 Getting timestamp only causes bad_alloc.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp string and broken-down time causes filesystem_error", "[libMagAOX::file::fileTimes]")
 Getting timestamp string and broken-down time causes filesystem_error.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp only causes filesystem_error", "[libMagAOX::file::fileTimes]")
 Getting timestamp only causes filesystem_error.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp string and broken-down time causes exception", "[libMagAOX::file::fileTimes]")
 Getting timestamp string and broken-down time causes exception.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting timestamp only causes exception", "[libMagAOX::file::fileTimes]")
 Getting timestamp only causes exception.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes overflow", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes overflow.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes bad_alloc in timestamp", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes bad_alloc in timestamp.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes format_error in timestamp", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes format_error in timestamp.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes exception in timestamp", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes exception in timestamp.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes bad_alloc in top relpath", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes bad_alloc in top relpath.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes bad_alloc in relpath string", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes bad_alloc in relpath string.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes format_error in top relpath", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes format_error in top relpath.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes exception in top relpath", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes exception in top relpath.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Getting filename and relative path for a given time causes exception in relpath string", "[libMagAOX::file::fileTimes]")
 Getting filename and relative path for a given time causes exception in relpath string.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Parsing filenames, paths and timestamps, with no errors", "[libMagAOX::file::fileTimes]")
 Parsing filenames, paths and timestamps, with no errors.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Parsing filenames and paths with errors", "[libMagAOX::file::fileTimes]")
 Parsing filenames and paths with errors.
 
 libXWCTest::fileTest::fileTimesTest::TEST_CASE ("Parsing timestamps with errors", "[libMagAOX::file::fileTimes]")
 Parsing timestamps with errors.
 

Macro Definition Documentation

◆ XWCTEST_FILETIMERELPATH_THROW_BAD_ALLOC

#define XWCTEST_FILETIMERELPATH_THROW_BAD_ALLOC

Definition at line 43 of file fileTimes_test.cpp.

◆ XWCTEST_FILETIMERELPATH_THROW_EXCEPTION

#define XWCTEST_FILETIMERELPATH_THROW_EXCEPTION

Definition at line 57 of file fileTimes_test.cpp.

◆ XWCTEST_FILETIMERELPATH_THROW_FORMAT_ERROR

#define XWCTEST_FILETIMERELPATH_THROW_FORMAT_ERROR

Definition at line 50 of file fileTimes_test.cpp.

◆ XWCTEST_FILETIMERELPATHSTRING_THROW_BAD_ALLOC

#define XWCTEST_FILETIMERELPATHSTRING_THROW_BAD_ALLOC

Definition at line 64 of file fileTimes_test.cpp.

◆ XWCTEST_FILETIMERELPATHSTRING_THROW_EXCEPTION

#define XWCTEST_FILETIMERELPATHSTRING_THROW_EXCEPTION

Definition at line 71 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [1/15]

#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_BAD_ALLOC_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [2/15]

#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_FORMAT_ERROR_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [3/15]

#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_THROW_EXCEPTION_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [4/15]

#define XWCTEST_NAMESPACE   XWCTEST_TIMESTAMP_GMTIME_OTHER_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [5/15]

#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_BAD_ALLOC_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [6/15]

#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_FORMAT_ERROR_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [7/15]

#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATH_THROW_EXCEPTION_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [8/15]

#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATHSTRING_THROW_BAD_ALLOC_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [9/15]

#define XWCTEST_NAMESPACE   XWCTEST_FILETIMERELPATHSTRING_THROW_EXCEPTION_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [10/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_BAD_ALLOC_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [11/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_OUT_OF_RANGE_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [12/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSETIMESTAMP_THROW_EXCEPTION_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [13/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_BAD_ALLOC_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [14/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_OUT_OF_RANGE_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_NAMESPACE [15/15]

#define XWCTEST_NAMESPACE   XWCTEST_PARSEFILEPATH_THROW_EXCEPTION_ns

Definition at line 14 of file fileTimes_test.cpp.

◆ XWCTEST_PARSEFILEPATH_THROW_BAD_ALLOC

#define XWCTEST_PARSEFILEPATH_THROW_BAD_ALLOC

Definition at line 99 of file fileTimes_test.cpp.

◆ XWCTEST_PARSEFILEPATH_THROW_EXCEPTION

#define XWCTEST_PARSEFILEPATH_THROW_EXCEPTION

Definition at line 113 of file fileTimes_test.cpp.

◆ XWCTEST_PARSEFILEPATH_THROW_OUT_OF_RANGE

#define XWCTEST_PARSEFILEPATH_THROW_OUT_OF_RANGE

Definition at line 106 of file fileTimes_test.cpp.

◆ XWCTEST_PARSETIMESTAMP_THROW_BAD_ALLOC

#define XWCTEST_PARSETIMESTAMP_THROW_BAD_ALLOC

Definition at line 78 of file fileTimes_test.cpp.

◆ XWCTEST_PARSETIMESTAMP_THROW_EXCEPTION

#define XWCTEST_PARSETIMESTAMP_THROW_EXCEPTION

Definition at line 92 of file fileTimes_test.cpp.

◆ XWCTEST_PARSETIMESTAMP_THROW_OUT_OF_RANGE

#define XWCTEST_PARSETIMESTAMP_THROW_OUT_OF_RANGE

Definition at line 85 of file fileTimes_test.cpp.

◆ XWCTEST_TIMESTAMP_GMTIME_OTHER

#define XWCTEST_TIMESTAMP_GMTIME_OTHER

Definition at line 36 of file fileTimes_test.cpp.

◆ XWCTEST_TIMESTAMP_THROW_BAD_ALLOC

#define XWCTEST_TIMESTAMP_THROW_BAD_ALLOC

Definition at line 15 of file fileTimes_test.cpp.

◆ XWCTEST_TIMESTAMP_THROW_EXCEPTION

#define XWCTEST_TIMESTAMP_THROW_EXCEPTION

Definition at line 29 of file fileTimes_test.cpp.

◆ XWCTEST_TIMESTAMP_THROW_FORMAT_ERROR

#define XWCTEST_TIMESTAMP_THROW_FORMAT_ERROR

Definition at line 22 of file fileTimes_test.cpp.