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

Method gotResult

kdevplatform/util/projecttestjob.cpp:43–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void ProjectTestJobPrivate::gotResult(ITestSuite* suite, const TestResult& result)
44{
45 if (suite == m_currentSuite) {
46 m_result.total++;
47 q->emitPercent(m_result.total, m_result.total + m_suites.size());
48
49 switch (result.suiteResult) {
50 case TestResult::Passed:
51 m_result.passed++;
52 break;
53
54 case TestResult::Failed:
55 m_result.failed++;
56 break;
57
58 case TestResult::Error:
59 m_result.error++;
60 break;
61
62 default:
63 break;
64 }
65
66 if (m_suites.isEmpty()) {
67 q->emitResult();
68 } else {
69 runNext();
70 }
71 }
72}
73
74ProjectTestJob::ProjectTestJob(IProject* project, QObject* parent)
75 : KJob(parent)

Callers 1

ProjectTestJobMethod · 0.80

Calls 2

sizeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected