NAME
Devel::Cover::Base::Editor - Base class for editor coverage report backends
VERSION
version 1.52
SYNOPSIS
package Devel::Cover::Report::MyEditor;
use parent "Devel::Cover::Base::Editor";
my %Templates;
$Templates{myeditor} = <<'EOT';
... template content ...
EOT
sub template_name { "myeditor" }
sub templates { \%Templates }
sub output_message ($self, $out) { "MyEditor script written to $out" }
DESCRIPTION
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).
SEE ALSO
Devel::Cover::Report::Vim, Devel::Cover::Report::Nvim
LICENCE
Copyright 2026, Paul Johnson (paul@pjcj.net)
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