Devel::Cover::Base::Editor(3) User Contributed Perl Documentation Devel::Cover::Base::Editor(3)

# [NAME](#NAME)

Devel::Cover::Base::Editor - Base class for editor coverage report backends

# [SYNOPSIS](#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](#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](#template_name)

Returns the template name (e.g., "vim", "nvim").

[templates](#templates)

Returns a hashref of template name to template content.

[output\_message](#output_message)

Returns the success message to display (receives output path as argument).

# [SEE ALSO](#SEE_ALSO)

Devel::Cover::Report::Vim, Devel::Cover::Report::Nvim

# [LICENCE](#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

2026-08-30 perl v5.44.0

---

Document: Devel::Cover::Base::Editor(3pm) from perl-devel-cover 1.52-r5 (Chainguard OS)
Source: https://github.com/pjcj/Devel--Cover
