Skip to content

Commit

Permalink
test_parfor.cpp: apply clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Apr 6, 2024
1 parent f97a3b4 commit 336e304
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/sampler/test_parfor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#include "Kokkos_Core.hpp"

using ::testing::Contains;
using ::testing::HasSubstr;
using ::testing::Not;
using ::testing::Contains;
using ::testing::Times;

struct Tester {
Expand Down Expand Up @@ -69,11 +69,19 @@ TEST(SamplerTest, ktoEnvVarDefault) {
EXPECT_THAT(output.str(), HasSubstr(matcher));
} // end TEST

EXPECT_THAT(output.str(), ::testing::Contains.Times(static_cast<int>(2), "calling child-begin function..."));
EXPECT_THAT(output.str(), ::testing::Contains.Times(static_cast<int>(2), "finished with child-begin function."));
EXPECT_THAT(output.str(),
::testing::Contains.Times(static_cast<int>(2),
"calling child-begin function..."));
EXPECT_THAT(output.str(),
::testing::Contains.Times(static_cast<int>(2),
"finished with child-begin function."));

EXPECT_THAT(output.str(), ::testing::Contains.Times(static_cast<int>(2), "calling child-end function..."));
EXPECT_THAT(output.str(), ::testing::Contains.Times(static_cast<int>(2), "finished with child-end function."));
EXPECT_THAT(output.str(),
::testing::Contains.Times(static_cast<int>(2),
"calling child-end function..."));
EXPECT_THAT(output.str(),
::testing::Contains.Times(static_cast<int>(2),
"finished with child-end function."));

EXPECT_THAT(output.str(), Not(HasSubstr("KokkosP: FATAL: No child library of "
"sampler utility library to call")));
Expand Down

0 comments on commit 336e304

Please sign in to comment.