1 /* 2 * Copyright 2017, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef KPATH_TEST_H 6 #define KPATH_TEST_H 7 8 9 #include <TestCase.h> 10 #include <TestSuite.h> 11 12 13 class KPathTest : public CppUnit::TestCase { 14 public: 15 KPathTest(); 16 virtual ~KPathTest(); 17 18 void TestSetToAndPath(); 19 void TestLazyAlloc(); 20 void TestLeaf(); 21 void TestReplaceLeaf(); 22 void TestRemoveLeaf(); 23 void TestAdopt(); 24 void TestLockBuffer(); 25 void TestDetachBuffer(); 26 void TestNormalize(); 27 void TestAssign(); 28 void TestEquals(); 29 void TestNotEquals(); 30 31 static void AddTests(BTestSuite& suite); 32 }; 33 34 35 #endif // KPATH_TEST_H 36