Fix CircleCI build, more coverity fixes.

This commit is contained in:
2023-10-19 22:57:55 -07:00
parent a5bb31943c
commit 2a23d2e204
9 changed files with 42 additions and 24 deletions

View File

@@ -53,7 +53,7 @@ SimpleSuite::Silence()
void
SimpleSuite::AddTest(std::string name, std::function<bool()> test)
{
UnitTest const test_case = {name, test};
const UnitTest test_case = {std::move(name), test};
tests.push_back(test_case);
}
@@ -62,7 +62,7 @@ void
SimpleSuite::AddFailingTest(std::string name, std::function<bool()> test)
{
// auto ntest = [&test]() { return !test(); };
UnitTest test_case = {name, [&test]() { return !test(); }};
const UnitTest test_case = {std::move(name), [&test]() { return !test(); }};
tests.push_back(test_case);
}