Lines Matching refs:ordered_options
79 std::vector<std::pair<OptionName, OptionValue>> ordered_options; in TEST() local
108 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
128 ASSERT_TRUE(cmd.PreprocessOptions(args, option_formats, &options, &ordered_options, nullptr)); in TEST()
129 ASSERT_EQ(ordered_options.size(), 3); in TEST()
130 ASSERT_EQ(ordered_options[0].first, "--ord-str-option"); in TEST()
131 ASSERT_EQ(*(ordered_options[0].second.str_value), "str1"); in TEST()
132 ASSERT_EQ(ordered_options[1].first, "--ord-uint-option"); in TEST()
133 ASSERT_EQ(ordered_options[1].second.uint_value, 32); in TEST()
134 ASSERT_EQ(ordered_options[2].first, "--ord-str-option"); in TEST()
135 ASSERT_EQ(*(ordered_options[2].second.str_value), "str2"); in TEST()
138 ASSERT_TRUE(cmd.PreprocessOptions({"arg1", "--arg2"}, option_formats, &options, &ordered_options, in TEST()
143 &ordered_options, &non_option_args)); in TEST()
149 &ordered_options, nullptr)); in TEST()
152 cmd.PreprocessOptions({"--str-option"}, option_formats, &options, &ordered_options, nullptr)); in TEST()
155 &ordered_options, nullptr)); in TEST()
157 &ordered_options, nullptr)); in TEST()
160 &ordered_options, nullptr)); in TEST()