Devel::...:Editor(3)
Hey bestie π welcome to Devel::Cover::Base::Editor(3) β brought to you by User Contributed Perl Documentation. Sheβs the base-class blueprint for editor coverage report backends, and she is lowkey iconic, highkey useful. β¨
π NAME π
Devel::Cover::Base::Editor β base class for editor coverage report backends. Thatβs the whole assignment, periodt. π
πΈ VERSION πΈ
version 1.52 β thatβs the version, no cap. π«Ά
π¦ SYNOPSIS π¦
Bestie, if youβre building your own editor backend, the shape is giving:
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 β think Vim and Nvim. It provides the shared report() method, which constructs the template variables and processes the editor-specific template. So the base class handles the common report flow, and the subclass brings the editor flavor. π
Subclasses must implement these three, bestie β no skipping:
template_nameβ returns the template name, like"vim"or"nvim". Sheβs literally just the name, okay? πtemplatesβ returns a hashref of template name to template content. Name goes in, content comes out, iykyk. π¦output_messageβ returns the success message to display, and it receives the output path as an argument. Cute little victory-lap message. π
π SEE ALSO π
Go give these cuties a look: Devel::Cover::Report::Vim and Devel::Cover::Report::Nvim. Theyβre the editor-specific besties. π
π LICENCE π
Copyright 2026, Paul Johnson (paul@pjcj.net)
This software is free, bestie. It is licensed under the same terms as Perl itself. Slay.
The latest version of this software should be available from my homepage: https://pjcj.net. Go get the freshest tea. π
Rendered by perl v5.42.2 on 2026-03-07 β thatβs the sign-off from Devel::Cover::Base::Editor(3). Bye bestie, go write a glorious editor report πβ¨
π¦ where this page comes from
- alpine 3.24: perl-devel-cover-doc 1.52-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms