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
16
namespace
Lima
17
{
18
namespace
Common
19
{
20
namespace
TGV
21
{
22
23
class
TestCasesReaderPrivate;
24
class
LIMA_TGV_EXPORT
TestCasesReader
25
{
26
27
public
:
28
TestCasesReader
(
TestCaseProcessor
& processor);
29
~TestCasesReader
();
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
49
private
:
50
TestCasesReaderPrivate
* m_d;
51
};
52
53
// This utility function return a user-defined exit code (64) if a "bloquant"
54
// test failed.
55
LIMA_TGV_EXPORT
int
exitCode
(TestCasesReader
const
& tch);
56
57
}
// TGV
58
}
// Common
59
}
// Lima
60
61
62
#endif
LIMA_TGV_EXPORT
#define LIMA_TGV_EXPORT
Definition
LinguisticProcessingCommon.h:86
TestCaseProcessor.hpp
TestCase.h
Lima::Common::TGV::TestCaseProcessor
Definition
TestCaseProcessor.hpp:33
Lima::Common::TGV::TestCasesReaderPrivate
Definition
TestCasesReader.cpp:29
Lima::Common::TGV::TestCasesReader
Definition
TestCasesReader.h:25
Lima::Common::TGV::exitCode
int exitCode(TestCasesHandler const &tch)
Definition
TestCasesHandler.cpp:243
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::Common::TGV::TestCasesReader::TestReport
Definition
TestCasesReader.h:31
Lima::Common::TGV::TestCasesReader::TestReport::success
uint64_t success
Definition
TestCasesReader.h:32
Lima::Common::TGV::TestCasesReader::TestReport::TestReport
TestReport()
Definition
TestCasesReader.h:36
Lima::Common::TGV::TestCasesReader::TestReport::conditional
uint64_t conditional
Definition
TestCasesReader.h:34
Lima::Common::TGV::TestCasesReader::TestReport::nbtests
uint64_t nbtests
Definition
TestCasesReader.h:35
Lima::Common::TGV::TestCasesReader::TestReport::failed
uint64_t failed
Definition
TestCasesReader.h:33
lima_linguisticprocessing
src
linguisticProcessing
common
tgv
TestCasesReader.h
Generated by
1.9.8