Test::...:Parser(3pm)
β¨ 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 & LICENSE π
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 π
β COPYRIGHT AND LICENSE β
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
- alpine 3.24: perl-test-count-doc 0.1105-r1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms