catch_list.h 967 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Created by Phil on 5/11/2010.
  3. * Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
  4. *
  5. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef TWOBLUECUBES_CATCH_LIST_H_INCLUDED
  9. #define TWOBLUECUBES_CATCH_LIST_H_INCLUDED
  10. #include "catch_option.hpp"
  11. #include "catch_config.hpp"
  12. #include <set>
  13. namespace Catch {
  14. std::size_t listTests( Config const& config );
  15. std::size_t listTestsNamesOnly( Config const& config );
  16. struct TagInfo {
  17. void add( std::string const& spelling );
  18. std::string all() const;
  19. std::set<std::string> spellings;
  20. std::size_t count = 0;
  21. };
  22. std::size_t listTags( Config const& config );
  23. std::size_t listReporters();
  24. Option<std::size_t> list( std::shared_ptr<Config> const& config );
  25. } // end namespace Catch
  26. #endif // TWOBLUECUBES_CATCH_LIST_H_INCLUDED