Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/beast/_experimental/unit_test/global_suites.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
0008 //
0009 
0010 #ifndef BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
0011 #define BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
0012 
0013 #include <boost/beast/_experimental/unit_test/suite_list.hpp>
0014 
0015 namespace boost {
0016 namespace beast {
0017 namespace unit_test {
0018 
0019 namespace detail {
0020 
0021 /// Holds test suites registered during static initialization.
0022 inline
0023 suite_list&
0024 global_suites()
0025 {
0026     static suite_list s;
0027     return s;
0028 }
0029 
0030 template<class Suite>
0031 struct insert_suite
0032 {
0033     insert_suite(char const* name, char const* module,
0034         char const* library, bool manual)
0035     {
0036         global_suites().insert<Suite>(
0037             name, module, library, manual);
0038     }
0039 };
0040 
0041 } // detail
0042 
0043 /// Holds test suites registered during static initialization.
0044 inline
0045 suite_list const&
0046 global_suites()
0047 {
0048     return detail::global_suites();
0049 }
0050 
0051 } // unit_test
0052 } // beast
0053 } // boost
0054 
0055 #endif