File: GroupGenSubclass.pm

package info (click to toggle)
libsub-exporter-perl 0.990-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: perl: 2,344; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;

package Test::SubExporter::GroupGenSubclass;
use base qw(Test::SubExporter::GroupGen);

sub gen_group_by_name {
  my ($class, $group, $arg, $collection) = @_;

  my %given = (
    class => $class,
    group => $group,
    arg   => $arg,
    collection => $collection,
  );

  return {
    baz => sub { return { name => 'baz-sc', %given }; },
  };
}

"power overwhelming";