Lines Matching full:args

11 #include "lldb/Utility/Args.h"
18 OptionsWithRaw args(""); in TEST() local
19 ASSERT_FALSE(args.HasArgs()); in TEST()
20 ASSERT_STREQ(args.GetRawPart().c_str(), ""); in TEST()
25 OptionsWithRaw args(" "); in TEST() local
26 ASSERT_FALSE(args.HasArgs()); in TEST()
27 ASSERT_STREQ(args.GetRawPart().c_str(), " "); in TEST()
32 OptionsWithRaw args(" "); in TEST() local
33 ASSERT_FALSE(args.HasArgs()); in TEST()
34 ASSERT_STREQ(args.GetRawPart().c_str(), " "); in TEST()
39 OptionsWithRaw args("-foo bar"); in TEST() local
40 ASSERT_FALSE(args.HasArgs()); in TEST()
41 ASSERT_STREQ(args.GetRawPart().c_str(), "-foo bar"); in TEST()
46 OptionsWithRaw args("foo bar --"); in TEST() local
47 ASSERT_FALSE(args.HasArgs()); in TEST()
48 ASSERT_STREQ(args.GetRawPart().c_str(), "foo bar --"); in TEST()
53 OptionsWithRaw args("-foo \"--\" bar"); in TEST() local
54 ASSERT_FALSE(args.HasArgs()); in TEST()
55 ASSERT_STREQ(args.GetRawPart().c_str(), "-foo \"--\" bar"); in TEST()
60 OptionsWithRaw args("-foo --"); in TEST() local
61 ASSERT_TRUE(args.HasArgs()); in TEST()
62 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
63 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo --"); in TEST()
65 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
69 ASSERT_STREQ(args.GetRawPart().c_str(), ""); in TEST()
75 OptionsWithRaw args("-foo -- "); in TEST() local
76 ASSERT_TRUE(args.HasArgs()); in TEST()
77 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
78 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
80 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
84 ASSERT_STREQ(args.GetRawPart().c_str(), ""); in TEST()
89 OptionsWithRaw args("-foo -- "); in TEST() local
90 ASSERT_TRUE(args.HasArgs()); in TEST()
91 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
92 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
94 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
98 ASSERT_STREQ(args.GetRawPart().c_str(), " "); in TEST()
103 OptionsWithRaw args(" -foo -- bar"); in TEST() local
104 ASSERT_TRUE(args.HasArgs()); in TEST()
105 ASSERT_EQ(args.GetArgString(), " -foo "); in TEST()
106 ASSERT_EQ(args.GetArgStringWithDelimiter(), " -foo -- "); in TEST()
108 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
112 ASSERT_STREQ(args.GetRawPart().c_str(), "bar"); in TEST()
117 OptionsWithRaw args("-foo -- bar"); in TEST() local
118 ASSERT_TRUE(args.HasArgs()); in TEST()
119 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
120 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
122 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
126 ASSERT_STREQ(args.GetRawPart().c_str(), "bar"); in TEST()
131 OptionsWithRaw args("-foo -- bar baz"); in TEST() local
132 ASSERT_TRUE(args.HasArgs()); in TEST()
133 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
134 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
136 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
140 ASSERT_STREQ(args.GetRawPart().c_str(), "bar baz"); in TEST()
145 OptionsWithRaw args("-foo -- bar \" "); in TEST() local
146 ASSERT_TRUE(args.HasArgs()); in TEST()
147 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
148 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
150 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
154 ASSERT_STREQ(args.GetRawPart().c_str(), "bar \" "); in TEST()
159 OptionsWithRaw args("-foo -- bar \"a\" "); in TEST() local
160 ASSERT_TRUE(args.HasArgs()); in TEST()
161 ASSERT_EQ(args.GetArgString(), "-foo "); in TEST()
162 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-foo -- "); in TEST()
164 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
168 ASSERT_STREQ(args.GetRawPart().c_str(), "bar \"a\" "); in TEST()
173 OptionsWithRaw args("-- bar"); in TEST() local
174 ASSERT_TRUE(args.HasArgs()); in TEST()
175 ASSERT_EQ(args.GetArgString(), ""); in TEST()
176 ASSERT_EQ(args.GetArgStringWithDelimiter(), "-- "); in TEST()
178 auto ref = args.GetArgs().GetArgumentArrayRef(); in TEST()
181 ASSERT_STREQ(args.GetRawPart().c_str(), "bar"); in TEST()