Lines Matching refs:m_pTestee
21 m_pTestee = new Path();
26 delete m_pTestee;
43 m_pTestee->assign(root);
44 EXPECT_TRUE(exists(*m_pTestee));
46 delete m_pTestee;
47 m_pTestee = new Path(root);
48 EXPECT_TRUE(exists(*m_pTestee));
53 m_pTestee->assign(root);
54 EXPECT_FALSE(exists(*m_pTestee));
56 delete m_pTestee;
57 m_pTestee = new Path(root);
58 EXPECT_FALSE(exists(*m_pTestee));
63 m_pTestee->assign(root);
64 EXPECT_TRUE(exists(*m_pTestee));
65 EXPECT_TRUE(is_directory(*m_pTestee));
66 delete m_pTestee;
67 m_pTestee = new Path(root);
68 EXPECT_TRUE(exists(*m_pTestee));
69 EXPECT_TRUE(is_directory(*m_pTestee));
74 m_pTestee->assign(root);
75 EXPECT_FALSE(exists(*m_pTestee));
76 EXPECT_FALSE(is_directory(*m_pTestee));
77 delete m_pTestee;
78 m_pTestee = new Path(root);
79 EXPECT_FALSE(exists(*m_pTestee));
80 EXPECT_FALSE(is_directory(*m_pTestee));
85 m_pTestee->assign(root);
89 EXPECT_TRUE(*m_pTestee == *p2);
91 delete m_pTestee;
92 m_pTestee = new Path(root);
93 EXPECT_TRUE(*m_pTestee == *m_pTestee);
101 m_pTestee->assign(root);
102 EXPECT_TRUE(*m_pTestee != *p2);
104 delete m_pTestee;
105 m_pTestee = new Path(root);
106 EXPECT_TRUE(*m_pTestee != *p2);
112 m_pTestee->assign(root);
113 m_pTestee->append("aaa");
115 EXPECT_TRUE(m_pTestee->native() == "aa/aaa");
116 delete m_pTestee;
117 m_pTestee = new Path("aa/");
118 m_pTestee->append("/aaa");
119 EXPECT_TRUE(m_pTestee->native() == "aa/aaa");
120 delete m_pTestee;
121 m_pTestee = new Path("aa");
122 m_pTestee->append("/aaa");
123 EXPECT_TRUE(m_pTestee->native() == "aa/aaa");
124 delete m_pTestee;
125 m_pTestee = new Path("aa");
126 m_pTestee->append("aaa");
127 EXPECT_TRUE(m_pTestee->native() == "aa/aaa");
131 m_pTestee->assign("/etc/../dev/../usr//lib//");
132 EXPECT_STREQ("/usr/lib/", m_pTestee->generic_string().c_str());
136 m_pTestee->assign("aa/bb/cc/dd");
137 EXPECT_STREQ("aa/bb/cc", m_pTestee->parent_path().c_str());
138 delete m_pTestee;
139 m_pTestee = new Path("/aa/bb/");
140 EXPECT_STREQ("/aa/bb", m_pTestee->parent_path().c_str());
141 delete m_pTestee;
142 m_pTestee = new Path("/aa/bb");
143 EXPECT_STREQ("/aa", m_pTestee->parent_path().c_str());
144 delete m_pTestee;
145 m_pTestee = new Path("aa/");
146 EXPECT_STREQ("aa", m_pTestee->parent_path().c_str());
147 delete m_pTestee;
148 m_pTestee = new Path("aa");
149 EXPECT_TRUE(m_pTestee->parent_path().empty());
153 m_pTestee->assign("aa/bb/cc");
154 EXPECT_STREQ("cc", m_pTestee->filename().c_str());
156 m_pTestee->assign("aa/bb/");
157 EXPECT_STREQ("", m_pTestee->filename().c_str());
159 m_pTestee->assign("aa");
160 EXPECT_STREQ("aa", m_pTestee->filename().c_str());