ProteoWizard
|
Go to the source code of this file.
Classes | |
struct | TestPathmask |
Macros | |
#define | SYSTEMCATEGORY system_category |
#define | ABS "./" |
#define | REL "./relative" |
#define | A "/" |
#define | D ":" |
Functions | |
string | setSystemDrive (const string &path) |
void | create_file (const bfs::path &ph, const string &contents) |
void | createTestPath () |
void | deleteTestPath () |
set< bfs::path > | parsePathArray (const string &pathArray) |
void | testExpandPathmask () |
void | testAbbreviateByteSize () |
int | main (int argc, char *argv[]) |
Variables | |
string | systemDrive |
const char * | testPathContentPairArray [] |
const int | testPathContentPairArraySize = sizeof(testPathContentPairArray) / sizeof(const char*) |
const TestPathmask | testPathmaskArray [] |
const int | testPathmaskArraySize = sizeof(testPathmaskArray) / sizeof(TestPathmask) |
#define SYSTEMCATEGORY system_category |
Definition at line 37 of file FilesystemTest.cpp.
#define ABS "./" |
Definition at line 48 of file FilesystemTest.cpp.
#define REL "./relative" |
Definition at line 49 of file FilesystemTest.cpp.
#define A "/" |
Definition at line 50 of file FilesystemTest.cpp.
#define D ":" |
Definition at line 51 of file FilesystemTest.cpp.
string setSystemDrive | ( | const string & | path | ) |
Definition at line 55 of file FilesystemTest.cpp.
References systemDrive.
Referenced by createTestPath(), deleteTestPath(), parsePathArray(), and testExpandPathmask().
void create_file | ( | const bfs::path & | ph, |
const string & | contents | ||
) |
Definition at line 116 of file FilesystemTest.cpp.
References SYSTEMCATEGORY.
Referenced by createTestPath().
void createTestPath | ( | ) |
Definition at line 125 of file FilesystemTest.cpp.
References ABS, create_file(), REL, setSystemDrive(), testPathContentPairArray, testPathContentPairArraySize, and unit_assert.
Referenced by testExpandPathmask().
void deleteTestPath | ( | ) |
Definition at line 155 of file FilesystemTest.cpp.
References setSystemDrive(), testPathContentPairArray, and testPathContentPairArraySize.
Referenced by main(), and testExpandPathmask().
set<bfs::path> parsePathArray | ( | const string & | pathArray | ) |
Definition at line 163 of file FilesystemTest.cpp.
References D, and setSystemDrive().
Referenced by testExpandPathmask().
void testExpandPathmask | ( | ) |
Definition at line 175 of file FilesystemTest.cpp.
References ABS, createTestPath(), deleteTestPath(), pwiz::util::expand_pathmask(), parsePathArray(), REL, setSystemDrive(), systemDrive, testPathmaskArray, testPathmaskArraySize, unit_assert, and unit_assert_operator_equal.
Referenced by main().
void testAbbreviateByteSize | ( | ) |
Definition at line 232 of file FilesystemTest.cpp.
References pwiz::util::abbreviate_byte_size(), pwiz::util::ByteSizeAbbreviation_IEC, pwiz::util::ByteSizeAbbreviation_JEDEC, and unit_assert.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 260 of file FilesystemTest.cpp.
References deleteTestPath(), TEST_EPILOG, TEST_FAILED, TEST_PROLOG, testAbbreviateByteSize(), and testExpandPathmask().
string systemDrive |
Definition at line 54 of file FilesystemTest.cpp.
Referenced by setSystemDrive(), and testExpandPathmask().
const char* testPathContentPairArray[] |
Definition at line 60 of file FilesystemTest.cpp.
Referenced by createTestPath(), and deleteTestPath().
const int testPathContentPairArraySize = sizeof(testPathContentPairArray) / sizeof(const char*) |
Definition at line 83 of file FilesystemTest.cpp.
Referenced by createTestPath(), and deleteTestPath().
const TestPathmask testPathmaskArray[] |
Definition at line 93 of file FilesystemTest.cpp.
Referenced by testExpandPathmask().
const int testPathmaskArraySize = sizeof(testPathmaskArray) / sizeof(TestPathmask) |
Definition at line 113 of file FilesystemTest.cpp.
Referenced by testExpandPathmask().