GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::NET::LDAP::UTIL (3)

.ds Aq ’

NAME

Test::Net::LDAP::Util - Testing utilities for Test::Net::LDAP

CONTENTS

EXPORT

The following subroutines are exported on demand.



    use Test::Net::LDAP::Util qw(
        ldap_result_ok
        ldap_result_is
        ldap_mockify
        ldap_dn_is
    );



All the subroutines are exported if :all is specified.



    use Test::Net::LDAP::Util :all;



SUBROUTINES

    ldap_result_ok



    ldap_result_ok($mesg, $name);



Tests the result of an LDAP operation to see if the code is LDAP_SUCCESS.

$mesg is either a Net::LDAP::Message object returned by LDAP operation methods or a result code.

$name is the optional test name.

    ldap_result_is



    ldap_result_is($mesg, $expect, $name);



Tests the result of an LDAP operation to see if the code is equal to $expect.

The values of $mesg and $expect are either a Net::LDAP::Message object returned by LDAP operation methods or a result code.

$name is the optional test name.

    ldap_mockify



    ldap_mockify {
        # CODE
    };



Inside the code block (recursively), all the occurrences of Net::LDAP::new are replaced by Test::Net::LDAP::Mock::new.

Subclasses of Net::LDAP are also mockified. Test::Net::LDAP::Mock is inserted into @ISA of each subclass, only within the context of ldap_mockify.

See Test::Net::LDAP::Mock for more details.

    ldap_dn_is



    ldap_dn_is($actual_dn, $expect_dn, $name);



Tests equality of two DNs that are not necessarily canonicalized.

The comparison is case-insensitive.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::NET::LDAP::UTIL (3) 2015-03-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.