• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gansm / finalcut / #769

12 Feb 2026 01:23AM UTC coverage: 67.312% (-1.8%) from 69.071%
#769

push

travis-ci

gansm
Use more faster bit logic

52 of 53 new or added lines in 4 files covered. (98.11%)

960 existing lines in 4 files now uncovered.

36675 of 54485 relevant lines covered (67.31%)

249.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

12.92
/test/fvtermattribute-test.cpp
1
/***********************************************************************
2
* fvtermattribute-test.cpp - FVTermAttribute unit tests                *
3
*                                                                      *
4
* This file is part of the FINAL CUT widget toolkit                    *
5
*                                                                      *
6
* Copyright 2021-2026 Markus Gans                                      *
7
*                                                                      *
8
* FINAL CUT is free software; you can redistribute it and/or modify    *
9
* it under the terms of the GNU Lesser General Public License as       *
10
* published by the Free Software Foundation; either version 3 of       *
11
* the License, or (at your option) any later version.                  *
12
*                                                                      *
13
* FINAL CUT is distributed in the hope that it will be useful, but     *
14
* WITHOUT ANY WARRANTY; without even the implied warranty of           *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
16
* GNU Lesser General Public License for more details.                  *
17
*                                                                      *
18
* You should have received a copy of the GNU Lesser General Public     *
19
* License along with this program.  If not, see                        *
20
* <http://www.gnu.org/licenses/>.                                      *
21
***********************************************************************/
22

23
#include <limits>
24

25
#include <cppunit/BriefTestProgressListener.h>
26
#include <cppunit/CompilerOutputter.h>
27
#include <cppunit/extensions/HelperMacros.h>
28
#include <cppunit/TestFixture.h>
29
#include <cppunit/TestResult.h>
30
#include <cppunit/TestResultCollector.h>
31
#include <cppunit/TestRunner.h>
32

33
#include <final/final.h>
34

35
//----------------------------------------------------------------------
36
// class FVTermAttributeTest
37
//----------------------------------------------------------------------
38

39
class FVTermAttributeTest : public CPPUNIT_NS::TestFixture
40
{
41
  public:
42
    FVTermAttributeTest() = default;
5✔
43

44
  protected:
45
    void classNameTest();
46
    void noArgumentTest();
47
    void afterInitTest();
48
    void setAttributeTest();
49
    void printTest();
50

51
  private:
52
    // Adds code needed to register the test suite
53
    CPPUNIT_TEST_SUITE (FVTermAttributeTest);
2✔
54

55
    // Add a methods to the test suite
56
    CPPUNIT_TEST (classNameTest);
2✔
57
    CPPUNIT_TEST (noArgumentTest);
2✔
58
    CPPUNIT_TEST (afterInitTest);
2✔
59
    CPPUNIT_TEST (setAttributeTest);
2✔
60
    CPPUNIT_TEST (printTest);
2✔
61

62
    // End of test suite definition
63
    CPPUNIT_TEST_SUITE_END();
3✔
64
};
65

66

67
//----------------------------------------------------------------------
68
void FVTermAttributeTest::classNameTest()
1✔
69
{
70
  const finalcut::FVTermAttribute a;
1✔
71
  const finalcut::FString& classname = a.getClassName();
1✔
72
  CPPUNIT_ASSERT ( classname == "FVTermAttribute" );
5✔
73
}
1✔
74

75
//----------------------------------------------------------------------
76
void FVTermAttributeTest::noArgumentTest()
1✔
77
{
78
  const finalcut::FVTermAttribute attribute{};
1✔
79
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor(0) );
6✔
80
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor(0) );
5✔
81
  finalcut::FUnicode empty{L'\0', L'\0', L'\0', L'\0', L'\0'};
1✔
82
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
6✔
83
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
6✔
84
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor(0) );
6✔
85
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor(0) );
6✔
86
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
6✔
87
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
6✔
88
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
7✔
89
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
5✔
90
}
1✔
91

92
//----------------------------------------------------------------------
93
void FVTermAttributeTest::afterInitTest()
1✔
94
{
95
  finalcut::FVTermAttribute attribute{};
1✔
96
  attribute.getAttribute().color.pair.fg = finalcut::FColor(3);
1✔
97
  attribute.getAttribute().color.pair.bg = finalcut::FColor(200);
1✔
98
  attribute.getAttribute().ch = {L'🗑', L'\0', L'\0', L'\0', L'\0'};
1✔
99
  attribute.getAttribute().attr.byte[0] = uInt8(0xff);
1✔
100
  attribute.getAttribute().attr.byte[1] = uInt8(0xff);
1✔
101
  attribute.getAttribute().attr.byte[2] = uInt8(0xff);
1✔
102
  attribute.getAttribute().attr.byte[3] = uInt8(0xff);
1✔
103
  attribute.initAttribute();
1✔
104
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
6✔
105
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
5✔
106
  finalcut::FUnicode empty{L'\0', L'\0', L'\0', L'\0', L'\0'};
1✔
107
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
6✔
108
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
6✔
109
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
6✔
110
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
6✔
111
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
6✔
112
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
6✔
113
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
6✔
114
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
5✔
115
}
1✔
116

117
//----------------------------------------------------------------------
118
void FVTermAttributeTest::setAttributeTest()
1✔
119
{
120
  finalcut::FVTermAttribute attribute{};
1✔
121
  attribute.initAttribute();
1✔
122
  // Set color (red text on white background)
123
  attribute.setColor(finalcut::FColor::Red, finalcut::FColor::White );
1✔
124
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Red );
6✔
125
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::White );
5✔
126
  finalcut::FUnicode empty{L'\0', L'\0', L'\0', L'\0', L'\0'};
1✔
127
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
6✔
128
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
6✔
129
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Red );
6✔
130
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::White );
6✔
131
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
6✔
132
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
6✔
133
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
6✔
134
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
5✔
135
  // Set color (light red text on black background)
136
  const finalcut::FColorPair color_pair (finalcut::FColor::LightRed, finalcut::FColor::Black);
1✔
137
  attribute.setColor(color_pair);
1✔
138
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::LightRed );
6✔
139
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Black );
5✔
140

141
  // Data that will never be modified by this class
142
  attribute.getAttribute().attr.bit.printed = true;
1✔
143
  attribute.getAttribute().attr.bit.fullwidth_padding = true;
1✔
144
  attribute.getAttribute().attr.bit.char_width = 2;
1✔
145
  // Set Normal
146
  attribute.setNormal();
1✔
147
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
6✔
148
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
8✔
UNCOV
149
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
150
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
151
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
152
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
153
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
154
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
155
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] != uInt8(0) );
×
UNCOV
156
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
157
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.no_changes == false );
×
UNCOV
158
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.printed == true );
×
UNCOV
159
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.fullwidth_padding == true );
×
UNCOV
160
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.char_width == 2 );
×
UNCOV
161
  attribute.getAttribute().attr.byte[2] = uInt8(0);
×
162

163
  // Bold
UNCOV
164
  attribute.setBold();
×
UNCOV
165
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
166
  attribute.unsetBold();
×
UNCOV
167
  CPPUNIT_ASSERT ( ! attribute.isBold() );
×
UNCOV
168
  attribute.setBold(true);
×
UNCOV
169
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
170
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
171
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
172
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
173
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
174
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
175
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
176
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
177
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
178
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.bold == true );
×
UNCOV
179
  attribute.setBold(false);
×
UNCOV
180
  CPPUNIT_ASSERT ( ! attribute.isBold() );
×
UNCOV
181
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
182

183
  // Dim
UNCOV
184
  attribute.setDim();
×
UNCOV
185
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
186
  attribute.unsetDim();
×
UNCOV
187
  CPPUNIT_ASSERT ( ! attribute.isDim() );
×
UNCOV
188
  attribute.setDim(true);
×
UNCOV
189
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
190
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
191
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
192
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
193
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
194
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
195
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
196
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
197
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
198
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dim == true );
×
UNCOV
199
  attribute.setDim(false);
×
UNCOV
200
  CPPUNIT_ASSERT ( ! attribute.isDim() );
×
UNCOV
201
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
202

203
  // Italic
UNCOV
204
  attribute.setItalic();
×
UNCOV
205
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
206
  attribute.unsetItalic();
×
UNCOV
207
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
208
  attribute.setItalic(true);
×
UNCOV
209
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
210
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
211
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
212
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
213
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
214
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
215
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
216
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
217
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
218
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.italic == true );
×
UNCOV
219
  attribute.setItalic(false);
×
UNCOV
220
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
221
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
222

223
  // Underline
UNCOV
224
  attribute.setUnderline();
×
UNCOV
225
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
226
  attribute.unsetUnderline();
×
UNCOV
227
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
228
  attribute.setUnderline(true);
×
UNCOV
229
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
230
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
231
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
232
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
233
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
234
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
235
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
236
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
237
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
238
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.underline == true );
×
UNCOV
239
  attribute.setUnderline(false);
×
UNCOV
240
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
241
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
242

243
  // Blink
UNCOV
244
  attribute.setBlink();
×
UNCOV
245
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
246
  attribute.unsetBlink();
×
UNCOV
247
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
248
  attribute.setBlink(true);
×
UNCOV
249
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
250
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
251
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
252
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
253
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
254
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
255
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
256
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
257
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
258
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.blink == true );
×
UNCOV
259
  attribute.setBlink(false);
×
UNCOV
260
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
261
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
262

263
  // Reverse
UNCOV
264
  attribute.setReverse();
×
UNCOV
265
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
266
  attribute.unsetReverse();
×
UNCOV
267
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
268
  attribute.setReverse(true);
×
UNCOV
269
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
270
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
271
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
272
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
273
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
274
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
275
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
276
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
277
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
278
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.reverse == true );
×
UNCOV
279
  attribute.setReverse(false);
×
UNCOV
280
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
281
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
282

283
  // Standout
UNCOV
284
  attribute.setStandout();
×
UNCOV
285
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
286
  attribute.unsetStandout();
×
UNCOV
287
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
288
  attribute.setStandout(true);
×
UNCOV
289
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
290
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
291
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
292
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
293
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
294
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
295
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
296
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
297
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
298
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.standout == true );
×
UNCOV
299
  attribute.setStandout(false);
×
UNCOV
300
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
301
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
302

303
  // Invisible
UNCOV
304
  attribute.setInvisible();
×
UNCOV
305
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
306
  attribute.unsetInvisible();
×
UNCOV
307
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
308
  attribute.setInvisible(true);
×
UNCOV
309
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
310
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
311
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
312
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
313
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
314
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
315
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
316
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
317
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
318
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.invisible == true );
×
UNCOV
319
  attribute.setInvisible(false);
×
UNCOV
320
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
321
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
322

323
  // Protected
UNCOV
324
  attribute.setProtected();
×
UNCOV
325
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
326
  attribute.unsetProtected();
×
UNCOV
327
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
328
  attribute.setProtected(true);
×
UNCOV
329
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
330
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
331
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
332
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
333
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
334
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
335
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
336
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
337
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
338
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.protect == true );
×
UNCOV
339
  attribute.setProtected(false);
×
UNCOV
340
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
341
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
342

343
  // Crossed out
UNCOV
344
  attribute.setCrossedOut();
×
UNCOV
345
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
346
  attribute.unsetCrossedOut();
×
UNCOV
347
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
348
  attribute.setCrossedOut(true);
×
UNCOV
349
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
350
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
351
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
352
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
353
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
354
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
355
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
356
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
357
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
358
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.crossed_out == true );
×
UNCOV
359
  attribute.setCrossedOut(false);
×
UNCOV
360
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
361
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
362

363
  // Double underline
UNCOV
364
  attribute.setDoubleUnderline();
×
UNCOV
365
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
366
  attribute.unsetDoubleUnderline();
×
UNCOV
367
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
368
  attribute.setDoubleUnderline(true);
×
UNCOV
369
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
370
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
371
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
372
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
373
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
374
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
375
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
376
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
377
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
378
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dbl_underline == true );
×
UNCOV
379
  attribute.setDoubleUnderline(false);
×
UNCOV
380
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
381
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
382

383
  // Alternate character set
UNCOV
384
  attribute.setAltCharset();
×
UNCOV
385
  CPPUNIT_ASSERT ( attribute.isAltCharset() );
×
UNCOV
386
  attribute.unsetAltCharset();
×
UNCOV
387
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
388
  attribute.setAltCharset(true);
×
UNCOV
389
  CPPUNIT_ASSERT ( attribute.isAltCharset() );
×
UNCOV
390
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
391
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
392
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
393
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
394
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
395
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
396
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
397
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
398
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.alt_charset == true );
×
UNCOV
399
  attribute.setAltCharset(false);
×
UNCOV
400
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
401
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
402

403
  // PC character set
UNCOV
404
  attribute.setPCcharset();
×
UNCOV
405
  CPPUNIT_ASSERT ( attribute.isPCcharset() );
×
UNCOV
406
  attribute.unsetPCcharset();
×
UNCOV
407
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
408
  attribute.setPCcharset(true);
×
UNCOV
409
  CPPUNIT_ASSERT ( attribute.isPCcharset() );
×
UNCOV
410
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
411
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
412
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
413
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
414
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
415
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
416
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
417
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
418
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.pc_charset == true );
×
UNCOV
419
  attribute.setPCcharset(false);
×
UNCOV
420
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
421
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
422

423
  // Transparent
UNCOV
424
  attribute.setTransparent();
×
UNCOV
425
  CPPUNIT_ASSERT ( attribute.isTransparent() );
×
UNCOV
426
  attribute.unsetTransparent();
×
UNCOV
427
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
428
  attribute.setTransparent(true);
×
UNCOV
429
  CPPUNIT_ASSERT ( attribute.isTransparent() );
×
UNCOV
430
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
431
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
432
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
433
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
434
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
435
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
436
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
437
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
438
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.transparent == true );
×
UNCOV
439
  attribute.setTransparent(false);
×
UNCOV
440
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
441
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
442

443
  // Color overlay
UNCOV
444
  attribute.setColorOverlay();
×
UNCOV
445
  CPPUNIT_ASSERT ( attribute.isColorOverlay() );
×
UNCOV
446
  attribute.unsetColorOverlay();
×
UNCOV
447
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
448
  attribute.setColorOverlay(true);
×
UNCOV
449
  CPPUNIT_ASSERT ( attribute.isColorOverlay() );
×
UNCOV
450
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
451
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
452
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
453
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
454
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
455
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
456
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
457
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
458
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.color_overlay == true );
×
UNCOV
459
  attribute.setColorOverlay(false);
×
UNCOV
460
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
461
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
462

463
  // Inherit background color
UNCOV
464
  attribute.setInheritBackground();
×
UNCOV
465
  CPPUNIT_ASSERT ( attribute.isInheritBackground() );
×
UNCOV
466
  attribute.unsetInheritBackground();
×
UNCOV
467
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
UNCOV
468
  attribute.setInheritBackground(true);
×
UNCOV
469
  CPPUNIT_ASSERT ( attribute.isInheritBackground() );
×
UNCOV
470
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
471
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
472
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
473
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
474
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
475
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
476
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
477
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
478
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.inherit_background == true );
×
UNCOV
479
  attribute.setInheritBackground(false);
×
UNCOV
480
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
UNCOV
481
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
482
}
1✔
483

484
//----------------------------------------------------------------------
485
void FVTermAttributeTest::printTest()
1✔
486
{
487
  finalcut::FVTermAttribute attribute{};
1✔
488
  attribute.initAttribute();
1✔
489

490
  // Color
491
  finalcut::FColorPair c1{finalcut::FColor::Yellow, finalcut::FColor::Blue };
1✔
492
  attribute.print(c1);
1✔
493
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Yellow );
6✔
494
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Blue );
5✔
495
  finalcut::FUnicode empty{L'\0', L'\0', L'\0', L'\0', L'\0'};
1✔
496
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
6✔
497
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
6✔
498
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Yellow );
6✔
499
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Blue );
6✔
500
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
6✔
501
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
6✔
502
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
6✔
503
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
5✔
504

505
  finalcut::FColorPair c2{finalcut::FColor::Grey0, finalcut::FColor::DarkSeaGreen7 };
1✔
506
  attribute.print(c2);
1✔
507
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Grey0 );
6✔
508
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::DarkSeaGreen7 );
5✔
509

510
  attribute.setNormal();
1✔
511
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
6✔
512
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
8✔
513

514
  // Style
UNCOV
515
  finalcut::FStyle s1{finalcut::Style::Bold + finalcut::Style::Dim};
×
UNCOV
516
  attribute.print(s1);
×
UNCOV
517
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
518
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
519
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
520
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
521
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
522
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
523
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
524
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
525
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
526
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
527
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.bold == true );
×
UNCOV
528
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dim == true );
×
529

UNCOV
530
  finalcut::FStyle s2{finalcut::Style::Italic + finalcut::Style::DoubleUnderline};
×
UNCOV
531
  attribute.print(s2);
×
UNCOV
532
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
533
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
534
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
535
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
536
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
537
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
538
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
539
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
540
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
541
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
542
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.bold == true );
×
UNCOV
543
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dim == true );
×
UNCOV
544
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.italic == true );
×
UNCOV
545
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dbl_underline == true );
×
546

UNCOV
547
  attribute.print(finalcut::FStyle(finalcut::Style::None));
×
UNCOV
548
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
549
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
550
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
551
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
552
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
553
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
554
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
555
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] == uInt8(0) );
×
UNCOV
556
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
557
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
558
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.bold == false );
×
UNCOV
559
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dim == false );
×
UNCOV
560
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.italic == false );
×
UNCOV
561
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.dbl_underline == false );
×
562

UNCOV
563
  attribute.setNormal();
×
UNCOV
564
  finalcut::FStyle s3{ finalcut::Style::Underline | finalcut::Style::Blink
×
565
                     | finalcut::Style::Reverse | finalcut::Style::Transparent };
UNCOV
566
  attribute.print(s3);
×
UNCOV
567
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
568
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
569
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
570
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
571
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
572
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
573
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
574
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
575
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
576
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
577
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.underline == true );
×
UNCOV
578
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.blink == true );
×
UNCOV
579
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.reverse == true );
×
UNCOV
580
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.transparent == true );
×
581

UNCOV
582
  attribute.setNormal();
×
UNCOV
583
  finalcut::FStyle s4{ finalcut::Style::Standout | finalcut::Style::Invisible
×
584
                     | finalcut::Style::CrossedOut | finalcut::Style::ColorOverlay };
UNCOV
585
  attribute.print(s4);
×
UNCOV
586
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
587
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
588
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
589
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
590
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
591
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
592
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] != uInt8(0) );
×
UNCOV
593
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
594
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
595
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
596
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.standout == true );
×
UNCOV
597
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.invisible == true );
×
UNCOV
598
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.crossed_out == true );
×
UNCOV
599
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.color_overlay == true );
×
600

UNCOV
601
  attribute.setNormal();
×
UNCOV
602
  finalcut::FStyle s5{ finalcut::Style::Protected | finalcut::Style::InheritBackground};
×
UNCOV
603
  attribute.print(s5);
×
UNCOV
604
  CPPUNIT_ASSERT ( attribute.getTermForegroundColor() == finalcut::FColor::Default );
×
UNCOV
605
  CPPUNIT_ASSERT ( attribute.getTermBackgroundColor() == finalcut::FColor::Default );
×
UNCOV
606
  CPPUNIT_ASSERT ( attribute.getAttribute().ch == empty );
×
UNCOV
607
  CPPUNIT_ASSERT ( attribute.getAttribute().encoded_char == empty );
×
UNCOV
608
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.fg == finalcut::FColor::Default );
×
UNCOV
609
  CPPUNIT_ASSERT ( attribute.getAttribute().color.pair.bg == finalcut::FColor::Default );
×
UNCOV
610
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[0] == uInt8(0) );
×
UNCOV
611
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[1] != uInt8(0) );
×
UNCOV
612
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[2] == uInt8(0) );
×
UNCOV
613
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.byte[3] == uInt8(0) );
×
UNCOV
614
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.protect == true );
×
UNCOV
615
  CPPUNIT_ASSERT ( attribute.getAttribute().attr.bit.inherit_background == true );
×
616

UNCOV
617
  attribute.setNormal();
×
UNCOV
618
  CPPUNIT_ASSERT ( ! attribute.isBold() );
×
UNCOV
619
  CPPUNIT_ASSERT ( ! attribute.isDim() );
×
UNCOV
620
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
621
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
622
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
623
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
624
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
625
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
626
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
627
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
628
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
629
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
630
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
631
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
632
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
633
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
634

UNCOV
635
  attribute.print(finalcut::FStyle(finalcut::Style::Bold));
×
UNCOV
636
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
637
  CPPUNIT_ASSERT ( ! attribute.isDim() );
×
UNCOV
638
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
639
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
640
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
641
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
642
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
643
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
644
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
645
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
646
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
647
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
648
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
649
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
650
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
651
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
652

UNCOV
653
  attribute.print(finalcut::FStyle(finalcut::Style::Dim));
×
UNCOV
654
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
655
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
656
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
657
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
658
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
659
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
660
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
661
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
662
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
663
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
664
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
665
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
666
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
667
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
668
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
669
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
670

UNCOV
671
  attribute.print(finalcut::FStyle(finalcut::Style::Italic));
×
UNCOV
672
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
673
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
674
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
675
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
676
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
677
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
678
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
679
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
680
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
681
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
682
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
683
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
684
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
685
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
686
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
687
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
688

UNCOV
689
  attribute.print(finalcut::FStyle(finalcut::Style::Underline));
×
UNCOV
690
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
691
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
692
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
693
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
694
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
695
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
696
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
697
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
698
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
699
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
700
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
701
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
702
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
703
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
704
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
705
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
706

UNCOV
707
  attribute.print(finalcut::FStyle(finalcut::Style::Blink));
×
UNCOV
708
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
709
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
710
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
711
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
712
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
713
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
714
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
715
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
716
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
717
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
718
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
719
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
720
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
721
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
722
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
723
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
724

UNCOV
725
  attribute.print(finalcut::FStyle(finalcut::Style::Reverse));
×
UNCOV
726
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
727
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
728
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
729
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
730
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
731
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
732
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
733
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
734
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
735
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
736
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
737
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
738
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
739
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
740
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
741
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
742

UNCOV
743
  attribute.print(finalcut::FStyle(finalcut::Style::Standout));
×
UNCOV
744
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
745
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
746
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
747
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
748
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
749
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
750
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
751
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
752
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
753
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
754
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
755
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
756
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
757
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
758
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
759
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
760

UNCOV
761
  attribute.print(finalcut::FStyle(finalcut::Style::Invisible));
×
UNCOV
762
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
763
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
764
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
765
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
766
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
767
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
768
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
769
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
770
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
771
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
772
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
773
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
774
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
775
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
776
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
777
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
778

UNCOV
779
  attribute.print(finalcut::FStyle(finalcut::Style::Protected));
×
UNCOV
780
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
781
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
782
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
783
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
784
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
785
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
786
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
787
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
788
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
789
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
790
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
791
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
792
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
793
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
794
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
795
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
796

UNCOV
797
  attribute.print(finalcut::FStyle(finalcut::Style::CrossedOut));
×
UNCOV
798
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
799
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
800
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
801
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
802
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
803
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
804
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
805
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
806
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
807
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
808
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
809
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
810
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
811
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
812
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
813
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
814

UNCOV
815
  attribute.print(finalcut::FStyle(finalcut::Style::DoubleUnderline));
×
UNCOV
816
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
817
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
818
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
819
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
820
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
821
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
822
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
823
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
824
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
825
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
826
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
827
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
828
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
829
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
830
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
831
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
832

UNCOV
833
  attribute.print(finalcut::FStyle(finalcut::Style::Transparent));
×
UNCOV
834
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
835
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
836
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
837
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
838
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
839
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
840
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
841
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
842
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
843
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
844
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
845
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
846
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
847
  CPPUNIT_ASSERT ( attribute.isTransparent() );
×
UNCOV
848
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
849
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
850

UNCOV
851
  attribute.print(finalcut::FStyle(finalcut::Style::ColorOverlay));
×
UNCOV
852
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
853
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
854
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
855
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
856
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
857
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
858
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
859
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
860
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
861
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
862
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
863
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
864
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
865
  CPPUNIT_ASSERT ( attribute.isTransparent() );
×
UNCOV
866
  CPPUNIT_ASSERT ( attribute.isColorOverlay() );
×
UNCOV
867
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
868

UNCOV
869
  attribute.print(finalcut::FStyle(finalcut::Style::InheritBackground));
×
UNCOV
870
  CPPUNIT_ASSERT ( attribute.isBold() );
×
UNCOV
871
  CPPUNIT_ASSERT ( attribute.isDim() );
×
UNCOV
872
  CPPUNIT_ASSERT ( attribute.isItalic() );
×
UNCOV
873
  CPPUNIT_ASSERT ( attribute.isUnderline() );
×
UNCOV
874
  CPPUNIT_ASSERT ( attribute.isBlink() );
×
UNCOV
875
  CPPUNIT_ASSERT ( attribute.isReverse() );
×
UNCOV
876
  CPPUNIT_ASSERT ( attribute.isStandout() );
×
UNCOV
877
  CPPUNIT_ASSERT ( attribute.isInvisible() );
×
UNCOV
878
  CPPUNIT_ASSERT ( attribute.isProtected() );
×
UNCOV
879
  CPPUNIT_ASSERT ( attribute.isCrossedOut() );
×
UNCOV
880
  CPPUNIT_ASSERT ( attribute.isDoubleUnderline() );
×
UNCOV
881
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
882
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
883
  CPPUNIT_ASSERT ( attribute.isTransparent() );
×
UNCOV
884
  CPPUNIT_ASSERT ( attribute.isColorOverlay() );
×
UNCOV
885
  CPPUNIT_ASSERT ( attribute.isInheritBackground() );
×
886

UNCOV
887
  attribute.print(finalcut::FStyle(finalcut::Style::None));
×
UNCOV
888
  CPPUNIT_ASSERT ( ! attribute.isBold() );
×
UNCOV
889
  CPPUNIT_ASSERT ( ! attribute.isDim() );
×
UNCOV
890
  CPPUNIT_ASSERT ( ! attribute.isItalic() );
×
UNCOV
891
  CPPUNIT_ASSERT ( ! attribute.isUnderline() );
×
UNCOV
892
  CPPUNIT_ASSERT ( ! attribute.isBlink() );
×
UNCOV
893
  CPPUNIT_ASSERT ( ! attribute.isReverse() );
×
UNCOV
894
  CPPUNIT_ASSERT ( ! attribute.isStandout() );
×
UNCOV
895
  CPPUNIT_ASSERT ( ! attribute.isInvisible() );
×
UNCOV
896
  CPPUNIT_ASSERT ( ! attribute.isProtected() );
×
UNCOV
897
  CPPUNIT_ASSERT ( ! attribute.isCrossedOut() );
×
UNCOV
898
  CPPUNIT_ASSERT ( ! attribute.isDoubleUnderline() );
×
UNCOV
899
  CPPUNIT_ASSERT ( ! attribute.isAltCharset() );
×
UNCOV
900
  CPPUNIT_ASSERT ( ! attribute.isPCcharset() );
×
UNCOV
901
  CPPUNIT_ASSERT ( ! attribute.isTransparent() );
×
UNCOV
902
  CPPUNIT_ASSERT ( ! attribute.isColorOverlay() );
×
UNCOV
903
  CPPUNIT_ASSERT ( ! attribute.isInheritBackground() );
×
904
}
1✔
905

906
// Put the test suite in the registry
907
CPPUNIT_TEST_SUITE_REGISTRATION (FVTermAttributeTest);
908

909
// The general unit test main part
910
#include <main-test.inc>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc