Packages / openSUSE Leap 15.6 / Development/Libraries/Perl / perl-Test-LectroTest

Package: perl-Test-LectroTest (0.5001-bp156.3.1)

Easy, automatic, specification-based tests

This module provides a simple (yet full featured) interface to LectroTest, an automated, specification-based testing system for Perl. To use it, declare properties that specify the expected behavior of your software. LectroTest then checks your software to see whether those properties hold. Declare properties using the 'Property' function, which takes a block of code and promotes it to a Test::LectroTest::Property: Property { MyModule::my_function( $x, $y ) >= 0; }, name => "my_function output is non-negative" ; The first part of the block must contain a generator-binding declaration. For example: (Note the special bracketing, which is required.) This particular binding says, "For all integers _x_ and _y_." (By the way, you aren't limited to integers. LectroTest also gives you booleans, strings, lists, hashes, and more, and it lets you define your own generator types. See Test::LectroTest::Generator for more.) The second part of the block is simply a snippet of code that makes use of the variables we bound earlier to test whether a property holds for the piece of software we are testing: MyModule::my_function( $x, $y ) >= 0; In this case, it asserts that 'MyModule::my_function($x,$y)' returns a non-negative result. (Yes, '$x' and '$y' refer to the same _x_ and _y_ that we bound to the generators earlier. LectroTest automagically loads these lexically bound Perl variables with values behind the scenes.) *Note:* If you want to use testing assertions like 'ok' from Test::Simple or 'is', 'like', or 'cmp_ok' from Test::More (and the related family of Test::Builder-based testing modules), see Test::LectroTest::Compat, which lets you mix and match LectroTest with these modules. Finally, we give the whole Property a name, in this case "my_function output is non-negative." It's a good idea to use a meaningful name because LectroTest refers to properties by name in its output. Let's take a look at the finished property specification: Property { MyModule::my_function( $x, $y ) >= 0; }, name => "my_function output is non-negative" ; It says, "For all integers _x_ and _y_, we assert that my_function's output is non-negative." To check whether this property holds, simply put it in a Perl program that uses the Test::LectroTest module. (See the SYNOPSIS for an example.) When you run the program, LectroTest will load the property (and any others in the file) and check it by running random trials against the software you're testing. *Note:* If you want to place LectroTest property checks into a test plan managed by Test::Builder-based modules such as Test::Simple or Test::More, see Test::LectroTest::Compat. If LectroTest is able to "break" your software during the property check, it will emit a counterexample to your property's assertions and stop. You can plug the counterexample back into your software to debug the problem. (You might also want to add the counterexample to a list of regression tests.) A successful LectroTest looks like this: 1..1 ok 1 - 'my_function output is non-negative' (1000 attempts) On the other hand, if you're not so lucky: 1..1 not ok 1 - 'my_function output is non-negative' falsified \ in 324 attempts

Package information

Homepage
[http://search.cpan.org/dist/Test-LectroTest/]
License
Artistic-1.0 OR GPL-1.0-or-later
Maintainer del pacchetto downstream
Sconosciuto: non segnalato nella fonte indicizzata
Pacchetto sorgente
[perl-Test-LectroTest]
Software project
[perl-Test-LectroTest]

Versions and downloads for perl-Test-LectroTest

Version / releaseArchitecture / repositoryPackage sizeInstalled sizeFilesPublisher repository artifact
0.5001-bp156.3.1leap-15.6 / ossnoarchopenSUSE Leap 15.6 · OSS · multi-architecture87 KiB165 KiBlist of filesperl-Test-LectroTest-0.5001-bp156.3.1.noarch.rpm
About these downloads

Ogni riga è metadato dell'indice pacchetti per una versione, architettura, suite e repository. Nomi, URL e dimensioni arrivano dalla fonte; un link è un punto di recupero mutabile, non una redistribuzione OpenFactory.

Dependencies and recommendations for perl-Test-LectroTest

  • dep: perl(:MODULE_COMPAT_5.26.1)

    Package not available

Percorsi file del pacchetto (30)

Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.

  • /usr/lib/perl5/vendor_perl/5.26.1/Test
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/Compat.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/FailureRecorder.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/Generator.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/Property.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/RegressionTesting.pod
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/TestRunner.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Test/LectroTest/Tutorial.pod
  • /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
  • /usr/share/doc/packages/perl-Test-LectroTest
  • /usr/share/doc/packages/perl-Test-LectroTest/buildrpm
  • /usr/share/doc/packages/perl-Test-LectroTest/Changes
  • /usr/share/doc/packages/perl-Test-LectroTest/checkpods
  • /usr/share/doc/packages/perl-Test-LectroTest/README
  • /usr/share/doc/packages/perl-Test-LectroTest/tex
  • /usr/share/doc/packages/perl-Test-LectroTest/tex/titlepage.ltx
  • /usr/share/doc/packages/perl-Test-LectroTest/THANKS
  • /usr/share/doc/packages/perl-Test-LectroTest/TODO
  • /usr/share/licenses/perl-Test-LectroTest
  • /usr/share/licenses/perl-Test-LectroTest/LICENSE
  • /usr/share/man/man3/Test::LectroTest.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::Compat.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::FailureRecorder.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::Generator.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::Property.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::RegressionTesting.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::TestRunner.3pm.gz
  • /usr/share/man/man3/Test::LectroTest::Tutorial.3pm.gz

Field source: openSUSE Leap 15.6 OSS

Vulnerabilità note

Nessun avviso corrispondente nelle fonti monitorate.

Ultima sincronizzazione:

[Catalogo CVE]

Checksum

Repository signatures authenticate metadata. Artifact hashing is recorded separately. Neither establishes package safety.

0.5001-bp156.3.1 / noarchOsservato Sep 1, 2026sha512 176bfb4b1fc9…4c89dcb2Impronta della fonte

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Impronta della fonte (sha512): 176bfb4b1fc9a5c768b56f0c5fd4e8dfda1ab46aaad260abbafa3f20e814cc9412c8df2b2610aaedc8ef8ce6c3b55b6989980193059d6efd5848b0494c89dcb2

Field source: openSUSE Leap 15.6 OSS

Fonti

  • Authoritative source; repository metadata signature verified

    Prova della firma

    leap-15-6-oss-multiarch:ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230

    Repository-signature verification record
    Signed-object SHA-256
    ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable

Usa questo pacchetto

OpenFactory può avviare questo sistema operativo in una macchina virtuale del browser, o iniziare una costruzione che include il nome nativo del pacchetto di questo record.