From c9f45c3f9cd93285de3e9b5ecca1b5a1666ec0ac Mon Sep 17 00:00:00 2001 From: Tomas Pecka <tomas.pecka@fit.cvut.cz> Date: Tue, 17 Mar 2020 10:40:59 +0100 Subject: [PATCH] integration tests: fix unwanted copy --- alib2integrationtest/test-src/tests/arbologyTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/alib2integrationtest/test-src/tests/arbologyTest.cpp b/alib2integrationtest/test-src/tests/arbologyTest.cpp index 43b200e68f..36f66b70c4 100644 --- a/alib2integrationtest/test-src/tests/arbologyTest.cpp +++ b/alib2integrationtest/test-src/tests/arbologyTest.cpp @@ -137,7 +137,7 @@ TEST_CASE ( "Arbology tests | nonlinear pattern", "[integration]" ) { SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.nonlinear.pattern.xml$" ), ".nonlinear.pattern.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.nonlinear.pattern.xml$" ), ".nonlinear.pattern.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } @@ -163,7 +163,7 @@ TEST_CASE ( "Arbology tests | nonlinear pattern ends", "[integration]" ) { auto pattern = EGenerateType::NONLINEAR_PATTERN_SINGLE_VAR; SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.nonlinear.pattern.xml$" ), ".nonlinear.pattern.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.nonlinear.pattern.xml$" ), ".nonlinear.pattern.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } @@ -216,7 +216,7 @@ TEST_CASE ( "Arbology tests | pattern", "[integration]" ) { auto pattern = EGenerateType::PATTERN; SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } @@ -241,7 +241,7 @@ TEST_CASE ( "Arbology tests | unordered pattern", "[integration]" ) { auto pattern = EGenerateType::UNORDERED_PATTERN; /* SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } @@ -273,7 +273,7 @@ TEST_CASE ( "Arbology tests | pattern ends ", "[integration]" ) { auto pattern = EGenerateType::PATTERN; SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.pattern.xml$" ), ".pattern.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } @@ -303,7 +303,7 @@ TEST_CASE ( "Arbology tests | subtree", "[integration]" ) { auto pattern = EGenerateType::SUBTREE; SECTION ( "Test files" ) { - for ( const std::pair < std::string, std::string > files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.subtree.xml$" ), ".subtree.xml", ".subject.xml" ) ) { + for ( const std::pair < std::string, std::string > & files : pair_pattern_subject ( TestFiles::Get ( "/tree/aarbology.test[0-9]+.subtree.xml$" ), ".subtree.xml", ".subject.xml" ) ) { CAPTURE ( std::get < 0 > ( definition ), std::get < 1 > ( definition ), files.first, files.second ); runTest ( exact, std::get < 1 > ( definition ), files.first, files.second ); } -- GitLab