Started to add tests for the tools.

This commit is contained in:
Andrew Hamilton 2016-02-05 01:37:51 +00:00
parent 33f75aefae
commit e34df613ca
23 changed files with 661 additions and 0 deletions

View file

@ -0,0 +1,3 @@
def hi():
 print("hi")


View file

@ -0,0 +1,18 @@
size: 12.0 B (12 bytes)
permissions: ?rwxr-xr-x (755)
modified time: Sun Jan 31 23:14:05 2016 (1454282045 secs)
creation time: Sun Jan 31 23:14:05 2016 (1454282045 secs)
access time: Sun Jan 31 23:14:07 2016 (1454282047 secs)
owner: foo (1111 uid)
group: foo (1111 gid)
hardlinks: 2
symlink: no
md5: 28ca2e417cb64ea4e555efe3203642de
sha1: 8b8c0214f3f0a0d79032d1b44550064964a33a26
mime type: text/plain; charset=us-ascii
file type: ASCII text 

View file

View file

@ -0,0 +1,12 @@
Useless declaration of a has-scoped method in mainline (did you mean 'my regex http-verb'?)
===SORRY!=== Error while compiling ./input/perl6.p6
Two terms in a row
at ./input/perl6.p6:30
------> <BOL>⏏say 'here';
expecting any of:
postfix
infix stopper
infix or meta-infix
statement end
statement modifier
statement modifier loop

View file

@ -0,0 +1 @@
./input/perl.pl syntax OK

View file

@ -0,0 +1,70 @@
Net::Z3950::AsyncZ
Intro
Net::Z3950::AsyncZ adds an additional layer of asynchronous support for
the Z3950 module through the use of multiple forked processes. I hope
that users will also find that it provides a convenient front end to
"Net::Z3950". My initial idea was to write something that would provide
a convenient means of processing and formatting Z39.50 records--which I
did, using the "Z3950" synchronous code. But I also wanted something
that could handle queries to large numbers of servers at one session.
Working on this part of my project, I found that I had trouble with the
"Z3950" asynchronous features and so ended up with what I have here.
I give a more detailed account in in the DESCRIPTION section of
"AsyncZ.pod".
Documentation
AsyncZ.pod
This is the starting point--it gives an overview of the AsyncZ
module, describes the basic mechanics of its asynchronous workings,
and details the particulars of the objects and methods. But see
""Examples.pod" for detailed explanations of the sample scripts
which come with the "Net::Z3950::AsyncZ" distribution.
Options.pod
This document details the various options that can be set to modify
the behavior of AsyncZ Index
Report.pod
Report.pod deals with how records are treated line by line and how
you can affect the apearance of a record's line by line output
Examples.pod
This document goes through the sample scripts that come with the
"Net::Z3950::AsyncZ" distribution and annotates them in a
line-by-line fashion. It's a basic HOW-TO.
The Modules
There are more modules than there is documentation. The reason for this
is that the only module you have full and complete access to is
"Net::Z3950::AsyncZ". The other modules are either internal to
"Net::AsyncZ" or accessed indirectly or in part indirectly.
Here are the modules:
Net::Z3950::AsyncZ
The main module: direct access --documented in "AsyncZ" and
"Options" documentation
Net::Z3950::AsyncZ::ErrMsg
User error message handling: indirect access -- documented in
"AsyncZ" documentation
Net::Z3950::AsyncZ::Errors
Error handling for debugging: limited access -- documented in
"AsyncZ" documentation
Net::Z3950::AsyncZ::Report
Module reponsible for fetching and formatting records: limited
access -- documented
Net::Z3950::AsyncZ::ZLoop
Event loop for child processes: no access -- not documented
Net::Z3950::AsyncZ::ZSend
Connection details for child processes: no access -- not documented
Net::Z3950::AsyncZ::Options::_params
Options for child processes: direct and indirect access --
documented in "Options" and "AsyncZ" documentation
INDEX

View file

@ -0,0 +1 @@
No documentation found for "./input/perl.pl".

View file

@ -0,0 +1,3 @@
#!/usr/bin/perl
print "Hello, world!\n";


View file

@ -0,0 +1,12 @@
Help on module hi3:
NAME
hi3
FUNCTIONS
hi()
FILE
/home/ahamilton/code/vigil/golden-files/input/hi3.py

View file

View file

@ -0,0 +1 @@
No config file found, using default configuration

View file

@ -0,0 +1,4 @@

> def hi():
> print("hi")

View file

@ -0,0 +1,2 @@
def hi():


View file

@ -0,0 +1 @@
3:1: 'hi' 2

View file

@ -0,0 +1,4 @@
Name File
---- ----
m __main__ ./input/hi3.py

View file

@ -0,0 +1 @@
No tests.