Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

TestCommon::Utils
Common Test Utils

TestCommon::Utils - Common Test Utils


NAME

TestCommon::Utils - Common Test Utils


Synopsis


  use TestCommon::Utils;

  # test whether some SV is tainted

  $b->read(my $data);

  ok TestCommon::Utils::is_tainted($data);

  my $data = TestCommon::Utils::read_post($r);


Description

Various handy testing utils


API

is_tainted


  is_tainted(@data);

returns TRUE if at least one element in @data is tainted, FALSE otherwise.

read_post


  my $data = TestCommon::Utils::read_post($r);

  my $data = TestCommon::Utils::read_post($r, $debug);

reads the posted data using bucket brigades manipulation.

To enable debug pass a true argument $debug

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy