MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / TEST

Function TEST

tests/host/ui/text_input_test.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using oid::host::parse_int_field;
31
32TEST(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
37TEST(TextInputTest, RejectsNonNumeric) {
38 EXPECT_EQ(parse_int_field(""), std::nullopt);

Callers

nothing calls this directly

Calls 1

parse_int_fieldFunction · 0.85

Tested by

no test coverage detected