coverage.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:mutpy 作者: mutpy 项目源码 文件源码
def __init__(self):
        super().__init__()
        for node_class in self.get_coverable_nodes():
            visit_method_name = 'visit_' + node_class.__name__
            if not hasattr(self, visit_method_name):
                if node_class == ast.ExceptHandler:
                    setattr(self, visit_method_name, self.inject_inside_visit)
                else:
                    setattr(self, visit_method_name, self.inject_before_visit)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号