MCPcopy Create free account
hub / github.com/KDE/kdevelop / testTabIndentation

Method testTabIndentation

plugins/astyle/tests/test_astyle.cpp:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void TestAstyle::testTabIndentation()
299{
300 AStyleFormatter formatter;
301 formatter.setTabIndentation(2, false);
302
303 const QString initial(QStringLiteral("int a() {\n return 0;\n}\n"));
304 const QString expected(QStringLiteral("int a() {\n\treturn 0;\n}\n"));
305 const QString formatted = formatter.formatSource(initial);
306 QCOMPARE(formatted, expected);
307}
308
309void TestAstyle::testForeach()
310{

Callers

nothing calls this directly

Calls 2

formatSourceMethod · 0.80
setTabIndentationMethod · 0.45

Tested by

no test coverage detected