1//
2// GlobTest.h
3//
4// Definition of the GlobTest class.
5//
6// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef GlobTest_INCLUDED
14#define GlobTest_INCLUDED
15
16
17#include "Poco/Foundation.h"
18#include "Poco/CppUnit/TestCase.h"
19#include <set>
20
21
22class GlobTest: public CppUnit::TestCase
23{
24public:
25 GlobTest(const std::string& name);
26 ~GlobTest();
27
28 void testMatchChars();
29 void testMatchQM();
30 void testMatchAsterisk();
31 void testMatchRange();
32 void testMisc();
33 void testGlob();
34 void testCaseless();
35 void testMatchEmptyPattern();
36
37 void setUp();
38 void tearDown();
39
40 static CppUnit::Test* suite();
41
42private:
43 void createFile(const std::string& path);
44 void translatePaths(std::set<std::string>& paths);
45};
46
47
48#endif // GlobTest_INCLUDED
49