forked from pocoproject/poco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTest.h
More file actions
executable file
·69 lines (56 loc) · 1.48 KB
/
DataTest.h
File metadata and controls
executable file
·69 lines (56 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// DataTest.h
//
// $Id: //poco/Main/Data/testsuite/src/DataTest.h#6 $
//
// Definition of the DataTest class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DataTest_INCLUDED
#define DataTest_INCLUDED
#include "Poco/Data/Data.h"
#include "Poco/BinaryReader.h"
#include "Poco/BinaryWriter.h"
#include "Poco/Data/Row.h"
#include "CppUnit/TestCase.h"
class DataTest: public CppUnit::TestCase
{
public:
DataTest(const std::string& name);
~DataTest();
void testSession();
void testStatementFormatting();
void testFeatures();
void testProperties();
void testLOB();
void testCLOB();
void testCLOBStreams();
void testColumnVector();
void testColumnVectorBool();
void testColumnDeque();
void testColumnList();
void testRow();
void testRowSort();
void testRowFormat();
void testDateAndTime();
void testExternalBindingAndExtraction();
void setUp();
void tearDown();
static CppUnit::Test* suite();
private:
void testRowStrictWeak(const Poco::Data::Row& row1,
const Poco::Data::Row& row2,
const Poco::Data::Row& row3);
/// Strict weak ordering requirement for sorted containers
/// as described in Josuttis "The Standard C++ Library"
/// chapter 6.5. pg. 176.
/// For this to pass, the following condition must be satisifed:
/// row1 < row2 < row3
void writeToCLOB(Poco::BinaryWriter& writer);
void readFromCLOB(Poco::BinaryReader& reader);
};
#endif // DataTest_INCLUDED