1//
2// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
3//
4// Distributed under the Boost Software License, Version 1.0. (See accompanying
5// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// Official repository: https://github.com/boostorg/beast
8//
9
10#ifndef BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
11#define BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
12
13#include <boost/beast/_experimental/unit_test/suite_list.hpp>
14
15namespace boost {
16namespace beast {
17namespace unit_test {
18
19namespace detail {
20
21/// Holds test suites registered during static initialization.
22inline
23suite_list&
24global_suites()
25{
26 static suite_list s;
27 return s;
28}
29
30template<class Suite>
31struct insert_suite
32{
33 insert_suite(char const* name, char const* module,
34 char const* library, bool manual)
35 {
36 global_suites().insert<Suite>(
37 name, module, library, manual);
38 }
39};
40
41} // detail
42
43/// Holds test suites registered during static initialization.
44inline
45suite_list const&
46global_suites()
47{
48 return detail::global_suites();
49}
50
51} // unit_test
52} // beast
53} // boost
54
55#endif
56

source code of boost/libs/beast/include/boost/beast/_experimental/unit_test/global_suites.hpp