---
name: "Devel::Cover::Base::Editor"
section: "3pm"
platform: "linux"
package: "perl-devel-cover"
version: "1.52-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Devel::Cover::Base::Editor"
---

# Devel::Cover::Base::Editor(3pm)

Base class for editor coverage report backends

## 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
