| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef KSNIP_PATHHELPERTESTS_H |
| 21 |
#define KSNIP_PATHHELPERTESTS_H |
| 22 |
|
| 23 |
#include <QtTest> |
| 24 |
|
| 25 |
class PathHelperTests : public QObject |
| 26 |
{ |
| 27 |
Q_OBJECT |
| 28 |
private slots: |
| 29 |
void IsPathValid_Should_ReturnFalse_When_StringEmpty(); |
| 30 |
void IsPathValid_Should_ReturnFalse_When_StringNull(); |
| 31 |
void IsPathValid_Should_ReturnTrue_When_StringHasContent(); |
| 32 |
void IsPipePath_Should_ReturnTrue_When_PathIsDash(); |
| 33 |
void IsPipePath_Should_ReturnFalse_When_PathIsNull(); |
| 34 |
void IsPipePath_Should_ReturnFalse_When_PathIsEmpty(); |
| 35 |
void ExtractParentDirectory_Should_ReturnStringWithParentDirectoryPath(); |
| 36 |
void ExtractFilename_Should_ReturnStringWithFilenameWithoutFormat_When_FormatExists(); |
| 37 |
void ExtractFilename_Should_ReturnStringWithFilenameWithoutFormat_When_NoFormatExists(); |
| 38 |
void ExtractFilenameWithFormat_Should_ReturnStringWithFilenameWithFormat_When_FormatExists(); |
| 39 |
void ExtractFilenameWithFormat_Should_ReturnStringWithFilenameWithFormat_When_NoFormatExists(); |
| 40 |
void ExtractFormat_Should_ReturnWithFormat_When_FormatExists(); |
| 41 |
void ExtractFormat_Should_ReturnEmptyString_When_NoFormatExists(); |
| 42 |
}; |
| 43 |
|
| 44 |
#endif |