Test::...:Parser(3pm)

πŸ“¦ version 0.1105, in alpine 3.24

✨ NAME ✨

Test::Count::Parser β€” a Parser for Test::Count, bestie. That's it, that's the whole name. And yes the man page you're literally reading right now is the Test::...:Parser(3pm) entry in the User Contributed Perl Documentation set, so like… welcome πŸ’…

🌸 VERSION 🌸

version 0.1105 β€” that's the one, no cap.

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole vibe in one code block, copy it, run it, live your truth:

use Test::Count::Parser ();

my $parser = Test::Count::Parser->new();

$parser->update_assignments($string);

$parser->update_count($string);

my $value = $parser->get_count();

πŸŽ€ DESCRIPTIONS πŸŽ€

So after you initiate a parser β€” yes, "initiating a parser", it's giving main character energy β€” you can feed it assignment expressions, and also count update experssions (that's how it's spelled in the source, iykyk, we don't gatekeep typos here πŸ™ˆ).

Both of those things use arithmetic operations, integers, and Perl-like variable names. That's the whole vibe check. Math girlies rise.

At the end you should call $parser->get_count()> in order to get the total number of tests. Do not forget this step. Like genuinely do not, that's the entire point of the module πŸ’€

πŸ”₯ FUNCTIONS πŸ”₯

πŸ’– $parser->update_assignments({'text' => $mytext,)

Updates the parser's state based on the assignments in $mytext. For example if $mytext is:

$myvar=500;$another_var=8+$myvar

Then at the end $myvar would be 500 and $another_var would be 508. Literally arithmetic slay. Look at it go 🫢

πŸ’œ $parser->update_count({'text' => $mytext,)

Adds the expression inside $mytext to the internal counter of the module. This is in order to count the tests. That's the job. That's what she does. Periodt.

⭐ my $count = $parser->get_count()

Get the total number of tests in the parser. Your final answer. Your moment. πŸ‘‘


🌈 AUTHOR 🌈

Shlomi Fish, <http://www.shlomifish.org/> . (yes there's a space before that period, we're keeping it, character for character, that's the rule bestie ✨)

🧚 ACKNOWLEDGEMENTS 🧚

The Parser uses Parse::RecDescent by Damian Conway and is based on the example code of RenΓ© Nyffenegger (<http://www.adp-gmbh.ch/>) available here:

<http://www.adp-gmbh.ch/perl/rec_descent.html>

giving credit where credit is due, we love to see it πŸŽ€

Copyright 2006 Shlomi Fish.

This program is released under the following license: MIT X11.

πŸ’« SUPPORT πŸ’«

🌸 Websites 🌸

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources. (Search engines are literally free, use them, no gatekeeping πŸ”)

  • MetaCPAN

A modern, open-source CPAN search engine, useful to view POD in HTML format.

<https://metacpan.org/release/Test-Count>

  • RT: CPAN's Bug Tracker

The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.

<https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Count>

  • CPANTS

The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.

<http://cpants.cpanauthors.org/dist/Test-Count>

  • CPAN Testers

The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.

<http://www.cpantesters.org/distro/T/Test-Count>

  • CPAN Testers Matrix

The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.

<http://matrix.cpantesters.org/?dist=Test-Count>

  • CPAN Testers Dependencies

The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.

<http://deps.cpantesters.org/?module=Test::Count>

πŸ¦‹ Bugs / Feature Requests πŸ¦‹

Please report any bugs or feature requests by email to bug-test-count at rt.cpan.org, or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=Test-Count>. You will be automatically notified of any progress on the request by the system. Automatic notifications?? we love a system that keeps you in the loop πŸ’Œ

πŸ“ Source Code πŸ“

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

<https://github.com/shlomif/perl-test-count>

git clone git://github.com/shlomif/perl-test-count.git

go off, clone it, hack on it, it's giving open source icon behavior πŸ”₯

πŸ’œ AUTHOR πŸ’œ

Shlomi Fish <shlomif@cpan.org>

(yes, the AUTHOR section appears twice, once up top and once down here β€” that's how the original do be, we don't question it, we just vibe πŸ™ˆ)

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/perl-test-count/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. Like actually include it, a vague "it's broken" is not it bestie 😭

This software is Copyright (c) 2006 by Shlomi Fish.

This is free software, licensed under:

The MIT (X11) License

and that's the whole page, you're officially educated πŸŽ“βœ¨

cute sign-off time: this was perl v5.42.2, dated 2023-09-28, and it's the Test::...:Parser(3pm) page β€” go forth and count your tests, bestie πŸ’…πŸ«Ά

πŸ“¦ where this page comes from