API
 
Loading...
Searching...
No Matches
Collaboration diagram for fileTimes Unit Tests:

Namespaces

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

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 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.
 

Detailed Description

Function Documentation

◆ TEST_CASE() [1/21]

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.

Definition at line 589 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [2/21]

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.

Definition at line 480 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [3/21]

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.

Definition at line 557 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [4/21]

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.

Definition at line 672 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [5/21]

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.

Definition at line 534 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [6/21]

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.

Definition at line 648 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [7/21]

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.

Definition at line 511 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [8/21]

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.

Definition at line 621 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [9/21]

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.

Definition at line 461 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath().

◆ TEST_CASE() [10/21]

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.

Definition at line 440 of file fileTimes_test.cpp.

References MagAOX::file::fileTimeRelPath().

◆ TEST_CASE() [11/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Getting timestamp and broken-down time with errors"  ,
""  [libMagAOX::file::fileTimes] 
)

Getting timestamp and broken-down time with errors.

This is in a separate file due to need to define a buffer size too small to generate errors

Definition at line 237 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [12/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Getting timestamp only causes bad_alloc"  ,
""  [libMagAOX::file::fileTimes] 
)

Getting timestamp only causes bad_alloc.

Definition at line 327 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [13/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Getting timestamp only causes exception"  ,
""  [libMagAOX::file::fileTimes] 
)

Getting timestamp only causes exception.

Definition at line 420 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [14/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Getting timestamp only causes filesystem_error"  ,
""  [libMagAOX::file::fileTimes] 
)

Getting timestamp only causes filesystem_error.

Definition at line 378 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [15/21]

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.

Definition at line 295 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [16/21]

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.

Definition at line 398 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [17/21]

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.

Definition at line 356 of file fileTimes_test.cpp.

References MagAOX::file::timestamp(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [18/21]

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.

Definition at line 148 of file fileTimes_test.cpp.

References MagAOX::file::timestamp().

◆ TEST_CASE() [19/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Parsing filenames and paths with errors"  ,
""  [libMagAOX::file::fileTimes] 
)

Parsing filenames and paths with errors.

Definition at line 919 of file fileTimes_test.cpp.

References MagAOX::file::parseFilePath(), and XWCTEST_DOXYGEN_REF.

◆ TEST_CASE() [20/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Parsing  filenames,
paths and  timestamps,
with no errors"  ,
""  [libMagAOX::file::fileTimes] 
)

Parsing filenames, paths and timestamps, with no errors.

Definition at line 696 of file fileTimes_test.cpp.

References MagAOX::file::parseFilePath().

◆ TEST_CASE() [21/21]

libXWCTest::fileTest::fileTimesTest::TEST_CASE ( "Parsing timestamps with errors"  ,
""  [libMagAOX::file::fileTimes] 
)

Parsing timestamps with errors.

Tests only size errors. Exceptions tested with parseFilePath tests.

Definition at line 1041 of file fileTimes_test.cpp.

References MagAOX::file::parseTimestamp().