( self )
| 186 | self.assertEqual( f.match( "/a/s" ), int( f.Result.ExactMatch ) ) |
| 187 | |
| 188 | def testEllipsis( self ) : |
| 189 | |
| 190 | f = IECore.PathMatcher( [ |
| 191 | "/a/.../b*", |
| 192 | "/a/c", |
| 193 | ] ) |
| 194 | |
| 195 | for path, result in [ |
| 196 | ( "/a/ball", f.Result.ExactMatch | f.Result.DescendantMatch ), |
| 197 | ( "/a/red/ball", f.Result.ExactMatch | f.Result.DescendantMatch ), |
| 198 | ( "/a/red/car", f.Result.DescendantMatch ), |
| 199 | ( "/a/big/red/ball", f.Result.ExactMatch | f.Result.DescendantMatch | f.Result.AncestorMatch ), |
| 200 | ( "/a/lovely/shiny/bicyle", f.Result.ExactMatch | f.Result.DescendantMatch ), |
| 201 | ( "/a/c", f.Result.ExactMatch | f.Result.DescendantMatch ), |
| 202 | ( "/a/d", f.Result.DescendantMatch ), |
| 203 | ( "/a/anything", f.Result.DescendantMatch ), |
| 204 | ( "/a/anything/really", f.Result.DescendantMatch ), |
| 205 | ( "/a/anything/at/all", f.Result.DescendantMatch ), |
| 206 | ( "/b/anything/at/all", f.Result.NoMatch ), |
| 207 | ] : |
| 208 | |
| 209 | self.assertEqual( f.match( path ), int( result ) ) |
| 210 | |
| 211 | def testEllipsisWithMultipleBranches( self ) : |
| 212 |
nothing calls this directly
no test coverage detected