perl-App-SimpleScan-Plugin-LinkCheck-1.03-alt1.noarch.rpm


Advertisement

Description

perl-App-SimpleScan-Plugin-LinkCheck - Link counting/presence/absence plugin

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-App-SimpleScan-Plugin-LinkCheck
Package version: 1.03
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 12.26 KB
Download size: 12.26 KB
Official Mirror: ftp.altlinux.org
Th Linkcheck plugin adds simple link counting and presence/absence checking pragmas to `simple_scan'. These pragmas are assertions; they will be run for every test spec occurring after the pragma(s) appear in the intput file. You can, for instance, assert that you do not want to see a link named 'Click here' anywhere in the pages referenced by the test specs in this test: %%no_link 'Click here' Additional test specs generated by variable substitution will each have the check made, so for example %%which bar baz quux http://<which>.foo.com /foo.com/ Y Fetch page would check for /foo.com/ on each of bar.foo.com, baz.foo.com, and quux.foo.com, and also check for zero links whose name is 'Click here' on each of these pages. Conversely, you can assert that a link must be present on each page you look at: %%has_link 'back' This means that a link named 'back' must appear on every page you fetch after this pragma occurs in the input. You may want to remove the condition for some pages in your tests; this can easily be done by 'forgetting' the link: %%forget_link 'back' The assertion has now been dropped, and will not be tested through the rest of the file. If you want to forget all of the currently-active link-count assertions, just use %%forget_all_links and all of the link checks will stop. If you want to be more specific about the link counts, you can use the extended syntax for '%%has_link': %%has_link 'beta' >= 0 %%has_link 'up' == 2 %%has_link 'report_problems' != 1 Note that you can use any of the *numeric* operators and a count for this. These work just like the other tests, in that they apply to every test spec following until either the end of the file, or a '%%forget_link' that drops them.

Alternatives

Requires

Provides

  • perl(App/SimpleScan/Plugin/LinkCheck.pm) = 1.030
  • perl-App-SimpleScan-Plugin-LinkCheck = 1.03-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-App-SimpleScan-Plugin-LinkCheck rpm package:
      # sudo apt-get install perl-App-SimpleScan-Plugin-LinkCheck

    Files

    • /usr/share/doc/perl-App-SimpleScan-Plugin-LinkCheck-1.03/Changes
    • /usr/share/doc/perl-App-SimpleScan-Plugin-LinkCheck-1.03/README
    • /usr/share/perl5/App/
    • /usr/share/perl5/App/SimpleScan/
    • /usr/share/perl5/App/SimpleScan/Plugin/LinkCheck.pm
    Advertisement
    Advertisement