File: StandardPredicates_test4.C

package info (click to toggle)
ball 1.5.0%2Bgit20180813.37fc53c-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 239,848 kB
  • sloc: cpp: 326,149; ansic: 4,208; python: 2,303; yacc: 1,778; lex: 1,099; xml: 958; sh: 322; makefile: 93
file content (215 lines) | stat: -rw-r--r-- 4,219 bytes parent folder | download | duplicates (4)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//

#include <BALL/CONCEPT/classTest.h>
#include <BALLTestConfig.h>

///////////////////////////

// insert includes here
#include <BALL/KERNEL/standardPredicates.h>
#include <BALL/KERNEL/system.h>
#include <BALL/KERNEL/atom.h>
#include <BALL/KERNEL/PDBAtom.h>
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNEL/PTE.h>
#include <BALL/KERNEL/residue.h>
#include <BALL/FORMAT/HINFile.h>

///////////////////////////

START_TEST(standardPredicates)

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////

using namespace BALL;

///  insert tests for each member function here         
///

Atom atom;
atom.setName("Grmpfl.");

// =====================================================
// Ringfinder
// =====================================================

RingFinder* finder = 0;
CHECK(RingFinder() throw())
	finder = new RingFinder;
	TEST_NOT_EQUAL(finder, 0)
RESULT

CHECK(~RingFinder() throw())
	delete finder;
RESULT

CHECK(RingFinder(Size n) throw())
	RingFinder f(6);
RESULT

CHECK(bool operator () (const Atom& atom) throw())
	RingFinder f;
	f(atom);
RESULT

CHECK(const HashSet<const Bond*>& getVisitedBonds() const throw())
	RingFinder f(6);
	TEST_EQUAL(f.getVisitedBonds().size(), 0)
RESULT

CHECK(const std::vector<const Atom*>& getRingAtoms() const throw())
	RingFinder f(6);
	TEST_EQUAL(f.getRingAtoms().size(), 0)
RESULT

CHECK(bool dfs(const Atom& atom, const Size limit) throw())
	RingFinder f(5);
	TEST_EQUAL(f.dfs(atom, 1), false)
RESULT

CHECK(void setRingSize(Size n) throw())
	RingFinder f;
	f.setRingSize(1);
RESULT

// =====================================================
// not to be tested
// =====================================================
CHECK(::std::list<CTPNode*>& getChildren() throw())
// Not to be tested
RESULT

CHECK(CTPNode() throw())
// Not to be tested
RESULT

CHECK(CTPNode(const CTPNode& node) throw())
// Not to be tested
RESULT

CHECK(CTPNode* getParent() const throw())
// Not to be tested
RESULT

CHECK(ConstIterator begin() const throw())
// Not to be tested
RESULT

CHECK(ConstIterator end() const throw())
// Not to be tested
RESULT

CHECK(Iterator begin() throw())
// Not to be tested
RESULT

CHECK(Iterator end() throw())
// Not to be tested
RESULT

CHECK(Size getBondType() const throw())
// Not to be tested
RESULT

CHECK(Size getNumberOfChildren() const throw())
// Not to be tested
RESULT

CHECK(String getSymbol() const throw())
// Not to be tested
RESULT

CHECK(bool isFinished() const throw())
// Not to be tested
RESULT

CHECK(bool isLinked() const throw())
// Not to be tested
RESULT

CHECK(bool operator () (const Atom& atom) const throw())
// Not to be tested
RESULT

CHECK(char getBondTypeChar() const throw())
// Not to be tested
RESULT

CHECK(const HashSet<const CTPNode*>& getLinkSet() const throw())
// Not to be tested
RESULT

CHECK(void addChild(CTPNode* child) throw())
// Not to be tested
RESULT

CHECK(void clear() throw())
// Not to be tested
RESULT

CHECK(void destroy() throw())
// Not to be tested
RESULT

CHECK(void dump() const throw())
// Not to be tested
RESULT

CHECK(void dump(const CTPNode* current) const throw())
// Not to be tested
RESULT

CHECK(void linkWith(CTPNode* partner) throw())
// Not to be tested
RESULT

CHECK(void removeChild(CTPNode* child) throw())
// Not to be tested
RESULT

CHECK(void setArgument(const String& argument) throw())
// Not to be tested
RESULT

CHECK(void setBondType(Size type) throw())
// Not to be tested
RESULT

CHECK(void setBondType(char type) throw())
// Not to be tested
RESULT

CHECK(void setFinished() throw())
// Not to be tested
RESULT

CHECK(void setLinked() throw())
// Not to be tested
RESULT

CHECK(void setParent(CTPNode* parent) throw())
// Not to be tested
RESULT

CHECK(void setSymbol(const String& symbol) throw())
// Not to be tested
RESULT

CHECK(void unsetFinished() throw())
// Not to be tested
RESULT

CHECK(void unsetLinked() throw())
// Not to be tested
RESULT

CHECK(~CTPNode() throw())
// Not to be tested
RESULT

/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
END_TEST