in reply to Re^22: How to completely destroy class attributes with Test::Most?
in thread How to completely destroy class attributes with Test::Most?

The solution for that in Perl is just like C: do { $$self->$method(@_) } while ($$self->next);

  • Comment on Re^23: How to completely destroy class attributes with Test::Most?
  • Download Code

Replies are listed 'Best First'.
Re^24: How to completely destroy class attributes with Test::Most?
by nysus (Parson) on Sep 07, 2019 at 05:29 UTC

      I do not see anything obviously bad at a quick glance. I presume that it has tests and that they pass. Have you tried Devel::Cover to assess the code coverage of your test suite?

        It has basic formal tests built into it. I also have many more tests for a set of custom modules I wrote that exercise the module a lot harder. I’ve used Devel::Cover but not on this module yet. I also have to switch to File::Spec still.

        $PM = "Perl Monk's";
        $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
        $nysus = $PM . ' ' . $MCF;
        Click here if you love Perl Monks

      Ugh, my shout out got wiped out by dzil. Will fix later.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

Re^24: How to completely destroy class attributes with Test::Most?
by nysus (Parson) on Sep 02, 2019 at 16:59 UTC

    The module is getting mature. I'm about halfway through writing up documentation for it.

    I modified the Processor class so that it contains references back the files in the Collector class using some attributes. I also created a new File::Collector::Base which contains methods that can be used by both File::Collector and File::Collector::Processor.

    Here is link to the GitHub repo.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Re^24: How to completely destroy class attributes with Test::Most?
by nysus (Parson) on Sep 01, 2019 at 23:21 UTC

    Ah, yes. Of course. Thanks.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks