19 #include <ripple/beast/unit_test.h>
20 #include <ripple/beast/utility/PropertyStream.h>
37 BEAST_EXPECT(peeled_name == expected);
38 BEAST_EXPECT(s == expected_remainder);
42 fail(
"unhandled exception");
56 BEAST_EXPECT(found == should_be_found);
57 BEAST_EXPECT(s == expected);
61 fail(
"unhandled exception");
75 BEAST_EXPECT(found == should_be_found);
76 BEAST_EXPECT(s == expected_remainder);
80 fail(
"unhandled exception");
90 Source* source(root.find_one(name));
91 BEAST_EXPECT(source == expected);
95 fail(
"unhandled exception");
105 Source* source(root.find_path(path));
106 BEAST_EXPECT(source == expected);
110 fail(
"unhandled exception");
120 Source* source(root.find_one_deep(name));
121 BEAST_EXPECT(source == expected);
125 fail(
"unhandled exception");
139 auto const result(root.find(path));
140 BEAST_EXPECT(result.first == expected);
141 BEAST_EXPECT(result.second == expected_star);
145 fail(
"unhandled exception");
172 testcase(
"peel_name");
178 testcase(
"peel_leading_slash");
184 testcase(
"peel_trailing_slashstar");
196 testcase(
"find_one");
202 testcase(
"find_path");
213 testcase(
"find_one_deep");