OTest2
A C++ testing framework
lib
context.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Ondrej Starek
3
*
4
* This file is part of OTest2.
5
*
6
* OTest2 is free software: you can redistribute it and/or modify it under
7
* the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation, either version 3 of the License,
9
* or (at your option) any later version.
10
*
11
* OTest2 is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14
* License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with OTest2. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include <
context.h
>
21
22
namespace
OTest2
{
23
24
Context::Context
(
25
CommandStack
* command_stack_,
26
SemanticStack
* semantic_stack_,
27
ObjectPath
* object_path_,
28
TimeSource
* time_source_,
29
ExcCatcher
* exception_catcher_,
30
Reporter
* reporter_,
31
TestMarkFactory
* test_mark_factory_,
32
TestMarkStorage
* test_mark_storage_,
33
UserData
* user_data_) :
34
command_stack(command_stack_),
35
semantic_stack(semantic_stack_),
36
object_path(object_path_),
37
time_source(time_source_),
38
exception_catcher(exception_catcher_),
39
reporter(reporter_),
40
test_mark_factory(test_mark_factory_),
41
test_mark_storage(test_mark_storage_),
42
user_data(user_data_) {
43
44
}
45
46
Context::~Context
() {
47
48
}
49
50
}
/* -- namespace OTest2 */
OTest2::ObjectPath
This is a simple object keeping path to current testing object.
Definition:
objectpath.h:32
OTest2::Reporter
Generic test reporter.
Definition:
reporter.h:34
OTest2::TimeSource
Generic interface for getting of current time.
Definition:
timesource.h:30
OTest2::UserData
An object keeping user data passed from user's custom main function.
Definition:
userdata.h:120
OTest2::SemanticStack
Semantic stack.
Definition:
semanticstack.h:31
OTest2
Definition:
assertbean.h:25
OTest2::Context::~Context
~Context()
Dtor.
Definition:
context.cpp:46
OTest2::TestMarkStorage
Storage of test marks.
Definition:
testmarkstorage.h:34
OTest2::Context::Context
Context(const Context &)=delete
OTest2::ExcCatcher
Generic exception catcher interface.
Definition:
exccatcher.h:39
context.h
OTest2::CommandStack
Stack of framework commands.
Definition:
commandstack.h:30
OTest2::TestMarkFactory
A factory of testmark objects used for deserialization.
Definition:
testmarkfactory.h:45
Generated by
1.8.17