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  -  SHTK_UNITTEST_ADD_TEST (3)

NAME

shtk_unittest_add_test - Defines a standalone test case

CONTENTS

Library
Synopsis
Description
Examples
See Also
History

LIBRARY

shtk_import unittest

SYNOPSIS

shtk_unittest_add_test name

DESCRIPTION

The shtk_unittest_add_test function registers the standalone test case given by name. A function named '<name>_test' must be defined after the call to shtk_unittest_add_test has been made.

EXAMPLES

The following piece of code illustrates the definition of a couple of test cases:
shtk_unittest_add_test first_scenario
first_scenario_test() {
    ... test code for the first test case ...
}

shtk_unittest_add_test second_scenario second_scenario_test() { ... test code for the second test case ... }

SEE ALSO

shtk(3), shtk_unittest(3)

HISTORY

shtk_unittest_add_test first appeared in shtk 1.6.
Search for    or go to Top of page |  Section 3 |  Main Index


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