LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
TestCasesReader.h
Go to the documentation of this file.
1// Copyright 2002-2022 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
10#ifndef LIMA_TGV_TESTCASESHANDLER_H
11#define LIMA_TGV_TESTCASESHANDLER_H
12
13#include "TestCase.h"
14#include "TestCaseProcessor.hpp"
15
16namespace Lima
17{
18namespace Common
19{
20namespace TGV
21{
22
23class TestCasesReaderPrivate;
25{
26
27public:
30
31 struct TestReport {
32 uint64_t success;
33 uint64_t failed;
34 uint64_t conditional;
35 uint64_t nbtests;
36 TestReport() : success(0),failed(0),conditional(0),nbtests(0) {};
37 };
38
39 bool parse(QIODevice *device);
40
41 QString errorString() const;
42
43 const std::map<std::string,TestReport>& reportByType() const;
44
45 bool hasFatalError() const;
46
47 void clear();
48
49private:
51};
52
53// This utility function return a user-defined exit code (64) if a "bloquant"
54// test failed.
55LIMA_TGV_EXPORT int exitCode(TestCasesReader const & tch);
56
57} // TGV
58} // Common
59} // Lima
60
61
62#endif
#define LIMA_TGV_EXPORT
int exitCode(TestCasesHandler const &tch)
NAUTITIA.