| 318 | } |
| 319 | |
| 320 | void TestAstyle::testPointerAlignment() |
| 321 | { |
| 322 | AStyleFormatter formatter; |
| 323 | formatter.setPointerAlignment(astyle::PTR_ALIGN_NAME); |
| 324 | |
| 325 | const QString initial(QStringLiteral("int* a;\nint * b;\nint *c;\nint & d;\nconst double * const e;\n")); |
| 326 | const QString expected(QStringLiteral("int *a;\nint *b;\nint *c;\nint &d;\nconst double *const e;\n")); |
| 327 | const QString formatted = formatter.formatSource(initial); |
| 328 | QCOMPARE(formatted, expected); |
| 329 | } |
| 330 | |
| 331 | void TestAstyle::testKdeFrameworks() |
| 332 | { |
nothing calls this directly
no test coverage detected