Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecDocumented.h
Go to the documentation of this file.
1#pragma once
2
3#include <Specs/API.h>
4
5#include <string>
6#include <string_view>
7
8namespace SpecsCpp {
9
10 class SpecDocumented : public virtual ISpecDocumented {
11 std::string _description;
12
13 public:
14 SpecDocumented(std::string_view description) : _description(description) {}
15
16 const char* description() const override { return _description.c_str(); }
17 };
18}
SpecDocumented(std::string_view description)
const char * description() const override
Definition API.h:3