Lines Matching refs:m_pTestee
23 m_pTestee = new Path();
29 delete m_pTestee;
48 m_pTestee->assign(root);
49 EXPECT_TRUE(exists(*m_pTestee));
51 delete m_pTestee;
52 m_pTestee = new Path(root);
53 EXPECT_TRUE(exists(*m_pTestee));
58 m_pTestee->assign(root);
59 EXPECT_FALSE(exists(*m_pTestee));
61 delete m_pTestee;
62 m_pTestee = new Path(root);
63 EXPECT_FALSE(exists(*m_pTestee));
68 m_pTestee->assign(root);
69 EXPECT_TRUE(exists(*m_pTestee));
70 EXPECT_TRUE(is_directory(*m_pTestee));
71 delete m_pTestee;
72 m_pTestee = new Path(root);
73 EXPECT_TRUE(exists(*m_pTestee));
74 EXPECT_TRUE(is_directory(*m_pTestee));
79 m_pTestee->assign(root);
80 EXPECT_FALSE(exists(*m_pTestee));
81 EXPECT_FALSE(is_directory(*m_pTestee));
82 delete m_pTestee;
83 m_pTestee = new Path(root);
84 EXPECT_FALSE(exists(*m_pTestee));
85 EXPECT_FALSE(is_directory(*m_pTestee));
90 m_pTestee->assign(root);
94 EXPECT_TRUE(*m_pTestee==*p2);
96 delete m_pTestee;
97 m_pTestee = new Path(root);
98 EXPECT_TRUE(*m_pTestee==*m_pTestee);
106 m_pTestee->assign(root);
107 EXPECT_TRUE(*m_pTestee!=*p2);
109 delete m_pTestee;
110 m_pTestee = new Path(root);
111 EXPECT_TRUE(*m_pTestee!=*p2);
118 m_pTestee->assign(root);
119 m_pTestee->append("aaa");
121 EXPECT_TRUE(m_pTestee->native()=="aa/aaa");
122 delete m_pTestee;
123 m_pTestee = new Path("aa/");
124 m_pTestee->append("/aaa");
125 EXPECT_TRUE(m_pTestee->native()=="aa/aaa");
126 delete m_pTestee;
127 m_pTestee = new Path("aa");
128 m_pTestee->append("/aaa");
129 EXPECT_TRUE(m_pTestee->native()=="aa/aaa");
130 delete m_pTestee;
131 m_pTestee = new Path("aa");
132 m_pTestee->append("aaa");
133 EXPECT_TRUE(m_pTestee->native()=="aa/aaa");
137 m_pTestee->assign("/etc/../dev/../usr//lib//");
138 EXPECT_STREQ("/usr/lib/", m_pTestee->generic_string().c_str());
142 m_pTestee->assign("aa/bb/cc/dd");
143 EXPECT_STREQ("aa/bb/cc", m_pTestee->parent_path().c_str());
144 delete m_pTestee;
145 m_pTestee = new Path("/aa/bb/");
146 EXPECT_STREQ("/aa/bb", m_pTestee->parent_path().c_str());
147 delete m_pTestee;
148 m_pTestee = new Path("/aa/bb");
149 EXPECT_STREQ("/aa", m_pTestee->parent_path().c_str());
150 delete m_pTestee;
151 m_pTestee = new Path("aa/");
152 EXPECT_STREQ("aa", m_pTestee->parent_path().c_str());
153 delete m_pTestee;
154 m_pTestee = new Path("aa");
155 EXPECT_TRUE(m_pTestee->parent_path().empty());
159 m_pTestee->assign("aa/bb/cc");
160 EXPECT_STREQ("cc", m_pTestee->filename().c_str());
162 m_pTestee->assign("aa/bb/");
163 EXPECT_STREQ("", m_pTestee->filename().c_str());
165 m_pTestee->assign("aa");
166 EXPECT_STREQ("aa", m_pTestee->filename().c_str());