catch_section_info.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Created by Phil on 03/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_SECTION_INFO_H_INCLUDED
  9. #define TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED
  10. #include "catch_common.h"
  11. #include "catch_totals.h"
  12. #include <string>
  13. namespace Catch {
  14. struct SectionInfo {
  15. SectionInfo
  16. ( SourceLineInfo const& _lineInfo,
  17. std::string const& _name );
  18. // Deprecated
  19. SectionInfo
  20. ( SourceLineInfo const& _lineInfo,
  21. std::string const& _name,
  22. std::string const& ) : SectionInfo( _lineInfo, _name ) {}
  23. std::string name;
  24. std::string description; // !Deprecated: this will always be empty
  25. SourceLineInfo lineInfo;
  26. };
  27. struct SectionEndInfo {
  28. SectionInfo sectionInfo;
  29. Counts prevAssertions;
  30. double durationInSeconds;
  31. };
  32. } // end namespace Catch
  33. #endif // TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED