Add tests for FileVerifier, DirectoryVerifier, and DateTimeVerifier (closes #1563)

This commit is contained in:
Alexander Bock
2023-01-21 22:14:09 +01:00
parent c488231e65
commit 45b1b9e7e7
4 changed files with 183 additions and 58 deletions
@@ -174,6 +174,8 @@ private:
* refers to an existing file on disk.
*/
struct FileVerifier : public StringVerifier {
FileVerifier();
TestResult operator()(const ghoul::Dictionary& dict,
const std::string& key) const override;
@@ -185,6 +187,8 @@ struct FileVerifier : public StringVerifier {
* refers to an existing directory on disk.
*/
struct DirectoryVerifier : public StringVerifier {
DirectoryVerifier();
TestResult operator()(const ghoul::Dictionary& dict,
const std::string& key) const override;
@@ -196,6 +200,8 @@ struct DirectoryVerifier : public StringVerifier {
* a valid date time
*/
struct DateTimeVerifier : public StringVerifier {
DateTimeVerifier();
TestResult operator()(const ghoul::Dictionary& dict,
const std::string& key) const override;