Devel::Cover::Base::Editor3pm
Base class for editor coverage report backends
Usage
package Devel::Cover::Report::MyEditor;use parent "Devel::Cover::Base::Editor";my %Templates;$Templates{myeditor} = <<'EOT';... template content ...EOTsub template_name { "myeditor" }sub templates { \%Templates }sub output_message ($self, $out) { "MyEditor script written to $out" }
Version
version 1.52
Overview
This is an abstract base class for editor-specific coverage report modules (Vim, Nvim). It provides the shared report() method that constructs template variables and processes the editor-specific template.
Subclasses must implement:
template_name
|
Returns the template name (e.g., "vim", "nvim"). |
|---|---|
templates
|
Returns a hashref of template name to template content. |
output_message
|
Returns the success message to display (receives output path as argument). |
Licence
Copyright 2026, Paul Johnson ([email protected])
This software is free. It is licensed under the same terms as Perl itself.
The latest version of this software should be available from my homepage: https://pjcj.net