Files
o3de/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestImpactClientTestSelection.cpp
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

53 lines
1.6 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <TestImpactFramework/TestImpactClientTestSelection.h>
namespace TestImpact
{
namespace Client
{
TestRunSelection::TestRunSelection(const AZStd::vector<AZStd::string>& includedTests, const AZStd::vector<AZStd::string>& excludedTests)
: m_includedTestRuns(includedTests)
, m_excludedTestRuns(excludedTests)
{
}
TestRunSelection::TestRunSelection(AZStd::vector<AZStd::string>&& includedTests, AZStd::vector<AZStd::string>&& excludedTests)
: m_includedTestRuns(AZStd::move(includedTests))
, m_excludedTestRuns(AZStd::move(excludedTests))
{
}
const AZStd::vector<AZStd::string>& TestRunSelection::GetIncludededTestRuns() const
{
return m_includedTestRuns;
}
const AZStd::vector<AZStd::string>& TestRunSelection::GetExcludedTestRuns() const
{
return m_excludedTestRuns;
}
size_t TestRunSelection::GetNumIncludedTestRuns() const
{
return m_includedTestRuns.size();
}
size_t TestRunSelection::GetNumExcludedTestRuns() const
{
return m_excludedTestRuns.size();
}
size_t TestRunSelection::GetTotalNumTests() const
{
return GetNumIncludedTestRuns() + GetNumExcludedTestRuns();
}
} // namespace Client
} // namespace TestImpact