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

Method testSeverity_data

plugins/clang/tests/test_problems.cpp:499–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void TestProblems::testSeverity_data()
500{
501 QTest::addColumn<QByteArray>("code");
502 QTest::addColumn<IProblem::Severity>("severity");
503
504 QTest::newRow("error") << QByteArray("class foo {}") << IProblem::Error;
505 QTest::newRow("warning") << QByteArray("int main() { int foo = 1 / 0; return foo; }") << IProblem::Warning;
506 QTest::newRow("hint-unused-variable") << QByteArray("int main() { int foo = 0; return 0; }") << IProblem::Hint;
507 QTest::newRow("hint-unused-parameter") << QByteArray("int main(int argc, char**) { return 0; }") << IProblem::Hint;
508}
509
510#include "moc_test_problems.cpp"

Callers

nothing calls this directly

Calls 1

QByteArrayClass · 0.50

Tested by

no test coverage detected