chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)

This commit is contained in:
Alex Kremer
2026-03-16 23:47:40 +00:00
committed by GitHub
parent ffea3977f0
commit 7e7b71d84c
55 changed files with 495 additions and 150 deletions

View File

@@ -1299,6 +1299,7 @@ r.ripple.com:51235
s.append("online_delete = 3000");
std::uint32_t od = 0;
BEAST_EXPECT(set(od, "online_delete", s));
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
BEAST_EXPECTS(od == 3000, *(s.get<std::string>("online_delete")));
}
@@ -1307,6 +1308,7 @@ r.ripple.com:51235
s.append("online_delete = 2000 #my comment on this");
std::uint32_t od = 0;
BEAST_EXPECT(set(od, "online_delete", s));
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
BEAST_EXPECTS(od == 2000, *(s.get<std::string>("online_delete")));
}
}