def iter()

in sync/wptmeta/__init__.py [0:0]


    def iter(self,
             test_id: str | None = None,
             product: str | None = None,
             subtest: str | None = None,
             status: str | None = None) -> Iterator[MetaEntry]:
        """Iterator over all links in the file, filtered by arguments"""
        for item in self.links:
            if ((product is None or
                 (item.product is not None and
                  item.product.startswith(product))) and
                (test_id is None or
                 item.test_id == test_id) and
                (subtest is None or
                 getattr(item, "subtest", None) == subtest) and
                (status is None or
                 item.status == status)):
                yield item