MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / TEST_P

Function TEST_P

tests/unit/test_display_device.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58);
59
60TEST_P(ParseDeviceId, IntegrationTest) {
61 const auto &[input_value, expected_value] = GetParam();
62
63 config::video_t video_config {};
64 video_config.dd.configuration_option = config_option_e::verify_only;
65 video_config.output_name = input_value;
66
67 const auto result {display_device::parse_configuration(video_config, {})};
68 EXPECT_EQ(std::get<display_device::SingleDisplayConfiguration>(result).m_device_id, expected_value);
69}
70
71using ParseConfigOption = DisplayDeviceConfigTest<std::pair<config_option_e, std::optional<device_prep_t>>>;
72INSTANTIATE_TEST_SUITE_P(

Callers

nothing calls this directly

Calls 2

parse_configurationFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected