抽象类和 Pod::Coverage
我最近开始尝试使用 Dist::Zilla
来维护 Path::Class
。我添加了 [PodCoverageTests]
插件,它报告了 Path::Class::Entity
类中的一些失败,该类是 Path: 的抽象基类: :Class::File
和 Path::Class::Dir
。
我想要的是某种方式告诉测试代码 Entity
不需要文档,但它的两个派生类需要文档 - 即使这些方法仅在父类中定义。有人知道有什么方法可以做到这一点吗?
I've recently started to try to use Dist::Zilla
for maintaining Path::Class
. I added the [PodCoverageTests]
plugin, and it's reporting some failures in the Path::Class::Entity
class, which is the abstract base class for Path::Class::File
and Path::Class::Dir
.
What I'd like is some way to tell the testing code that Entity
doesn't need docs, but its two derived classes do - even though the methods are only defined in the parent class. Anyone know some way to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Dist::Zilla 的标准 POD 覆盖率测试使用 Pod::Coverage::TrustPod< /a>.
您应该能够告诉
它假设所有内容都已记录下来。
Dist::Zilla's standard POD coverage test uses Pod::Coverage::TrustPod.
You should be able to say
to tell it to assume that everything is documented.