mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Variables made const-ref.
This commit is contained in:
		@@ -28,7 +28,7 @@
 | 
				
			|||||||
namespace Catch {
 | 
					namespace Catch {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::size_t listTests( Config const& config ) {
 | 
					    std::size_t listTests( Config const& config ) {
 | 
				
			||||||
        TestSpec testSpec = config.testSpec();
 | 
					        TestSpec const& testSpec = config.testSpec();
 | 
				
			||||||
        if( config.hasTestFilters() )
 | 
					        if( config.hasTestFilters() )
 | 
				
			||||||
            Catch::cout() << "Matching test cases:\n";
 | 
					            Catch::cout() << "Matching test cases:\n";
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
@@ -62,7 +62,7 @@ namespace Catch {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::size_t listTestsNamesOnly( Config const& config ) {
 | 
					    std::size_t listTestsNamesOnly( Config const& config ) {
 | 
				
			||||||
        TestSpec testSpec = config.testSpec();
 | 
					        TestSpec const& testSpec = config.testSpec();
 | 
				
			||||||
        std::size_t matchedTests = 0;
 | 
					        std::size_t matchedTests = 0;
 | 
				
			||||||
        std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
 | 
					        std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config );
 | 
				
			||||||
        for( auto const& testCaseInfo : matchedTestCases ) {
 | 
					        for( auto const& testCaseInfo : matchedTestCases ) {
 | 
				
			||||||
@@ -100,7 +100,7 @@ namespace Catch {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::size_t listTags( Config const& config ) {
 | 
					    std::size_t listTags( Config const& config ) {
 | 
				
			||||||
        TestSpec testSpec = config.testSpec();
 | 
					        TestSpec const& testSpec = config.testSpec();
 | 
				
			||||||
        if( config.hasTestFilters() )
 | 
					        if( config.hasTestFilters() )
 | 
				
			||||||
            Catch::cout() << "Tags for matching test cases:\n";
 | 
					            Catch::cout() << "Tags for matching test cases:\n";
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user