OTest2
A C++ testing framework
assertbufferbase.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 <assertbufferbase.h>
21 
22 namespace OTest2 {
23 
25  AssertBufferStr(this) {
26 
27 }
28 
30 
32  const Context& context_,
33  const AssertBufferAssertData& data_,
34  const std::string& message_) {
35  /* -- empty implementation */
36 }
37 
39  const Context& context_,
40  const AssertBufferAssertData& data_,
41  const std::string& message_) {
42  /* -- empty implementation */
43 }
44 
46  const Context& context_,
47  const AssertBufferAssertData& data_) {
48  /* -- empty implementation */
49 }
50 
52  const Context& context_,
53  const std::string& message_) {
54  /* -- empty implementation */
55 }
56 
58  const Context& context_,
59  const std::string& message_) {
60  /* -- empty implementation */
61 }
62 
64  const Context& context_) {
65  /* -- empty implementation */
66 }
67 
68 } /* -- namespace OTest2 */
OTest2::AssertBufferBase::errorAdditionalMessage
virtual void errorAdditionalMessage(const Context &context_, const std::string &message_) override
Additional error message.
Definition: assertbufferbase.cpp:57
OTest2::AssertBufferBase::assertionOpeningMessage
virtual void assertionOpeningMessage(const Context &context_, const AssertBufferAssertData &data_, const std::string &message_) override
First composed message of an assertion.
Definition: assertbufferbase.cpp:31
OTest2::AssertBufferStr
An implementation of the assertion buffer keeping messages in a memory buffer.
Definition: assertbufferstr.h:117
OTest2::AssertBufferBase::~AssertBufferBase
virtual ~AssertBufferBase()
Dtor.
OTest2::AssertBufferBase::assertionAdditionalMessage
virtual void assertionAdditionalMessage(const Context &context_, const AssertBufferAssertData &data_, const std::string &message_) override
Additional assertion message.
Definition: assertbufferbase.cpp:38
OTest2::AssertBufferBase::assertionClose
virtual void assertionClose(const Context &context_, const AssertBufferAssertData &data_) override
Closing of the assertion.
Definition: assertbufferbase.cpp:45
OTest2::AssertBufferBase::errorOpeningMessage
virtual void errorOpeningMessage(const Context &context_, const std::string &message_) override
First composed message of an internal error.
Definition: assertbufferbase.cpp:51
OTest2
Definition: assertbean.h:25
OTest2::AssertBufferBase::AssertBufferBase
AssertBufferBase()
Ctor.
Definition: assertbufferbase.cpp:24
OTest2::AssertBufferBase::errorClose
virtual void errorClose(const Context &context_) override
Closing of the internal error.
Definition: assertbufferbase.cpp:63
assertbufferbase.h
OTest2::Context
OTest2 runtime context.
Definition: context.h:38
OTest2::AssertBufferAssertData
Common data kept for opened assertion.
Definition: assertbufferstr.h:35