NAME
Dicop::Data::Testcase - a test case for a job
SYNOPSIS
use Dicop::Data::Testcase;
REQUIRES
perl5.005, Dicop, Dicop::Item, Dicop::Base, Math::String
EXPORTS
Exports nothing on default.
DESCRIPTION
For a description of fields a testcase has, see doc/Objects.pod
.
METHODS
get_as_string
Return a field of the object as an ASCII string suitable for HTML output:
$object->get_as_string('client_name');
get_as_hex
Return a field of the object as an hexified string, or as a fallback, as normal string via get_as_string. The hexify happens only for certain special fields, all other are returned as simple strings:
$object->get_as_hex('client_name');
get
Return the value of a specified field of the object:
$object->get('foo');
extra_fields
$txt = $job->extra_fields();
If the jobtype for that job mandates extra fields, will return a text listing.
See Dicop::Data::Job
.
This routine is used to include them into the chunk description file.
extra_files()
my $response = $object->extra_files($job, $arch);
Returns a string containing a respone for the client with all the extra files needed to work on the given testcase on the given architecture.
check()
Applies self-check and crumbles if there are errors in internal data structure.
BUGS
None known yet.
AUTHOR
(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006
DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
See http://www.bsi.de/ for more information.