Skip to content

Commit

Permalink
Suppress clang-tidy warning in one place
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Jun 6, 2024
1 parent 4712403 commit e94b4b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HealthGPS.Tests/Datastore.Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,12 @@ TEST_F(DatastoreTest, DiseaseRelativeRiskToRiskFactor) {

auto col_size = 8;

// NOLINTBEGIN(bugprone-unchecked-optional-access)
auto table_male =
*manager.get_relative_risk_to_risk_factor(diabetes, Gender::male, risk_factor);
auto table_female =
*manager.get_relative_risk_to_risk_factor(diabetes, Gender::female, risk_factor);
// NOLINTEND(bugprone-unchecked-optional-access)

ASSERT_EQ(col_size, table_male.columns.size());
ASSERT_GT(table_male.rows.size(), 0);
Expand Down

0 comments on commit e94b4b8

Please sign in to comment.