Lines Matching refs:r
40 MountRegistry::Mounts& r() { return mounts_; } in r() function in MountRegistryTest
44 r().addRoot("/root", "/backing"); in TEST_F()
45 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F()
46 ASSERT_STREQ("/root", r().rootFor("/root/1").data()); in TEST_F()
47 ASSERT_STREQ("/root", r().rootFor("/root/1/2").data()); in TEST_F()
48 ASSERT_STREQ(nullptr, r().rootFor("/root1/1/2").data()); in TEST_F()
49 ASSERT_STREQ(nullptr, r().rootFor("/1/root").data()); in TEST_F()
50 ASSERT_STREQ(nullptr, r().rootFor("root").data()); in TEST_F()
54 r().addRoot("/root", "/backing"); in TEST_F()
55 r().addBind("/root/1", "/bind"); in TEST_F()
56 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F()
57 ASSERT_STREQ("/root", r().rootFor("/bind").data()); in TEST_F()
58 ASSERT_STREQ("/root", r().rootFor("/bind/1").data()); in TEST_F()
59 ASSERT_STREQ("/root", r().rootFor("/root/1").data()); in TEST_F()
60 ASSERT_STREQ(nullptr, r().rootFor("/1/bind").data()); in TEST_F()
61 ASSERT_STREQ(nullptr, r().rootFor("bind").data()); in TEST_F()
62 ASSERT_STREQ(nullptr, r().rootFor("/bind1").data()); in TEST_F()
63 ASSERT_STREQ(nullptr, r().rootFor("/.bind").data()); in TEST_F()
67 r().addRoot("/root", "/backing"); in TEST_F()
68 r().addBind("/root/1", "/bind"); in TEST_F()
69 r().addBind("/root/2/3", "/bind2"); in TEST_F()
70 r().addBind("/root/2/3", "/other/bind"); in TEST_F()
71 ASSERT_STREQ("/root", r().rootFor("/root").data()); in TEST_F()
72 ASSERT_STREQ("/root", r().rootFor("/bind").data()); in TEST_F()
73 ASSERT_STREQ("/root", r().rootFor("/bind2").data()); in TEST_F()
74 ASSERT_STREQ("/root", r().rootFor("/other/bind/dir").data()); in TEST_F()
75 ASSERT_EQ(std::pair("/root"sv, ""s), r().rootAndSubpathFor("/root")); in TEST_F()
76 ASSERT_EQ(std::pair("/root"sv, "1"s), r().rootAndSubpathFor("/bind")); in TEST_F()
77 ASSERT_EQ(std::pair("/root"sv, "2/3"s), r().rootAndSubpathFor("/bind2")); in TEST_F()
78 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/bind2/blah")); in TEST_F()
79 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/other/bind/blah")); in TEST_F()