tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
registered_test_class.h
Go to the documentation of this file.
1 #pragma once
4 #include "test_class.h"
5 #include <memory>
6 #include <string>
7 
9 namespace tunit {
10  class registered_test_class final {
11  public:
12  registered_test_class(const std::string& name, std::shared_ptr<tunit::test_class> test_class) noexcept : tc_(test_class) {this->tc_->name_ = name;}
13 
14  private:
15  friend class tunit::unit_test;
16 
17  const std::shared_ptr<tunit::test_class>& test() const noexcept {return this->tc_;}
18 
19  std::shared_ptr<tunit::test_class> tc_;
20  };
21 }
Definition: test_class.h:21
The template class.
Definition: unit_test.h:23
The tunit namespace contains a unit test library.
Definition: abort_error.h:8
Contains tunit::test_class class.
Definition: registered_test_class.h:10
Definition: test.h:20