COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
test
common
utest-component-benchmark.cpp
Go to the documentation of this file.
1
// Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2
//
3
// This software is distributed under the terms of the
4
// GNU Lesser General Public License version 3 (LGPLv3).
5
// See doc/lgpl.txt and doc/gpl.txt for the license text.
6
7
#define BOOST_TEST_DYN_LINK
8
#define BOOST_TEST_MODULE "Test module for cf3::Component"
9
10
#include <boost/test/unit_test.hpp>
11
12
#include "
common/Log.hpp
"
13
#include "
common/Component.hpp
"
14
#include "
common/Group.hpp
"
15
16
#include "
Tools/Testing/ProfiledTestFixture.hpp
"
17
#include "
Tools/Testing/TimedTestFixture.hpp
"
18
19
using namespace
cf3
;
20
21
struct
ComponentBenchFixture
:
Tools::Testing::TimedTestFixture
,
Tools::Testing::ProfiledTestFixture
22
{
23
};
24
26
27
BOOST_FIXTURE_TEST_SUITE( ComponentBenchSuite,
ComponentBenchFixture
)
28
29
31
BOOST_AUTO_TEST_CASE
( constructor )
32
{
33
for
(
Uint
i = 0; i != 10000; ++i)
34
common::allocate_component<common::Group>(
"test"
);
35
}
36
38
39
BOOST_AUTO_TEST_SUITE_END()
40
41
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(constructor)
Definition:
utest-component-benchmark.cpp:31
cf3::Tools::Testing::TimedTestFixture
Any test using this fixture (or a derivative) will be timed.
Definition:
TimedTestFixture.hpp:28
cf3::Tools::Testing::ProfiledTestFixture
Any test using this fixture (or a derivative) will be profiled.
Definition:
ProfiledTestFixture.hpp:30
Component.hpp
Holds the Component class, as well as the ComponentIterator class plus some functions related to comp...
TimedTestFixture.hpp
ComponentBenchFixture
Definition:
utest-component-benchmark.cpp:21
Group.hpp
cf3
Top-level namespace for coolfluid.
Definition:
Action.cpp:18
ProfiledTestFixture.hpp
cf3::Uint
unsigned int Uint
typedef for unsigned int
Definition:
CF.hpp:90
Log.hpp
Generated on Sun Jun 14 2015 21:20:16 for COOLFluiD by
1.8.9.1
Send comments to:
COOLFluiD Web Admin