| 30 | using oid::host::parse_int_field; |
| 31 | |
| 32 | TEST(TextInputTest, ParsesSignedIntegers) { |
| 33 | EXPECT_EQ(parse_int_field("42"), std::optional<int>{42}); |
| 34 | EXPECT_EQ(parse_int_field("-7"), std::optional<int>{-7}); |
| 35 | } |
| 36 | |
| 37 | TEST(TextInputTest, RejectsNonNumeric) { |
| 38 | EXPECT_EQ(parse_int_field(""), std::nullopt); |
nothing calls this directly
no test coverage detected