Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
BasicUnitTest.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* BasicUnitTest.cc (C) 2000-2025 */
9/* */
10/* Basic unit test service. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13#ifndef ARCANE_CORE_BASICUNITTEST_H
14#define ARCANE_CORE_BASICUNITTEST_H
15/*---------------------------------------------------------------------------*/
16/*---------------------------------------------------------------------------*/
17
18#include "arcane/core/IUnitTest.h"
19#include "arcane/core/BasicService.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
34class ARCANE_CORE_EXPORT BasicUnitTest
35: public BasicService
36, public IUnitTest
37{
38 public:
39
40 explicit BasicUnitTest(const ServiceBuildInfo& sbi);
41 ~BasicUnitTest() override;
42
43 public:
44
45 void initializeTest() override;
46 void executeTest() override;
47 void finalizeTest() override;
48};
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53} // namespace Arcane
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58#endif
void executeTest() override
Method called to execute the test.
void initializeTest() override
Method called after reading the dataset to initialize the test.
void finalizeTest() override
Method called to release resources at the end of execution.
Interface of a unit test service.
Definition IUnitTest.h:35
Structure containing the information to create a service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --