MCPcopy Create free account
hub / github.com/KDE/kdiff3 / quotedCharacter

Method quotedCharacter

src/autotests/commentparser.cpp:232–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 void quotedCharacter()
233 {
234 DefaultCommentParser test;
235
236 test.processLine("'\"'");
237 QVERIFY(!test.inString());
238 QVERIFY(!test.inComment());
239 QVERIFY(!test.isSkipable());
240 QVERIFY(!test.isPureComment());
241
242 test.processLine("'a'");
243 QVERIFY(!test.inString());
244 QVERIFY(!test.inComment());
245 QVERIFY(!test.isSkipable());
246 QVERIFY(!test.isPureComment());
247
248 test.processLine("'\\\''");
249 QVERIFY(!test.inString());
250 QVERIFY(!test.inComment());
251 QVERIFY(!test.isSkipable());
252 QVERIFY(!test.isPureComment());
253
254 test.processLine("'*'");
255 QVERIFY(!test.inString());
256 QVERIFY(!test.inComment());
257 QVERIFY(!test.isSkipable());
258 QVERIFY(!test.isPureComment());
259
260 test.processLine("'/'");
261 QVERIFY(!test.inString());
262 QVERIFY(!test.inComment());
263 QVERIFY(!test.isSkipable());
264 QVERIFY(!test.isPureComment());
265 }
266
267 void nonComment()
268 {

Callers

nothing calls this directly

Calls 5

processLineMethod · 0.80
inStringMethod · 0.80
inCommentMethod · 0.45
isSkipableMethod · 0.45
isPureCommentMethod · 0.45

Tested by

no test coverage detected