Lines Matching full:bar
27 self.assertMatchesGlob(glob_group, ["torch.foo", "torch.bar"])
28 self.assertNotMatchesGlob(glob_group, ["tor.foo", "torch.foo.bar", "torch"])
31 glob_group = GlobGroup("foo.*.bar")
32 self.assertMatchesGlob(glob_group, ["foo.q.bar", "foo.foo.bar"])
36 "foo.bar",
38 "outer.foo.inner.bar",
39 "foo.q.bar.more",
40 "foo.one.two.bar",
45 glob_group = GlobGroup("fo*.bar")
46 self.assertMatchesGlob(glob_group, ["fo.bar", "foo.bar", "foobar.bar"])
47 self.assertNotMatchesGlob(glob_group, ["oij.bar", "f.bar", "foo"])
59 glob_group, ["foo/bar/hello.txt", "bar/foo/hello.txt"]
65 glob_group, ["torch.foo", "torch.bar", "torch.foo.bar", "torch"]
71 self.assertMatchesGlob(glob_group, ["torch", "bar.torch"])
77 glob_group, ["foo.baz", "foo.bar.baz", "foo.bar1.bar2.baz"]
79 self.assertNotMatchesGlob(glob_group, ["foobaz", "foo.bar.baz.z"])
82 glob_group = GlobGroup("**/bar/**/*.txt", separator="/")
84 glob_group, ["bar/baz.txt", "a/bar/b.txt", "bar/foo/c.txt"]
90 self.assertMatchesGlob(glob_group, ["bar", "foo.bar", "ab.c.d.e"])
101 ["torch", "torch.bar", "torch.barfoo"],
109 glob_group = GlobGroup("**", exclude=["foo.**", "bar.**"])
111 self.assertNotMatchesGlob(glob_group, ["foo.bar", "foo.bar.baz"])
114 glob_group = GlobGroup(["foo", "bar.**"], exclude=["bar.baz", "bar.qux"])
115 self.assertMatchesGlob(glob_group, ["foo", "bar.other", "bar.bazother"])
116 self.assertNotMatchesGlob(glob_group, ["bar.baz", "bar.qux"])