Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SHTK_UNITTEST_ADD_T... FreeBSD Library Functions Manual	SHTK_UNITTEST_ADD_T...

NAME
     shtk_unittest_add_test -- Defines a standalone test case

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.

FreeBSD	13.0		       November	8, 2014			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | EXAMPLES | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=shtk_unittest_add_test&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help