| 296 | } |
| 297 | |
| 298 | void 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 | |
| 309 | void TestAstyle::testForeach() |
| 310 | { |
nothing calls this directly
no test coverage detected