joey shelton / LED_Demo2

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by joey shelton

Embed: (wiki syntax)

« Back to documentation index

Case Class Reference

Case Class Reference

Test case wrapper class. More...

#include <utest_case.h>

Public Member Functions

const char * get_description () const
bool is_empty () const

Detailed Description

Test case wrapper class.

This class contains the description of the test case and all handlers for setting up, running the test case, tearing down and handling failures.

By default you only need to provide a description and a test case handler. You may override the setup, teardown and failure handlers, but you do not have to. If you do not override these handler, the specified default handlers will be called.

These constructors are overloaded to allow you a comfortable declaration of all your callbacks. The order is always:

  • description (required)
  • setup handler (optional)
  • test case handler (required)
  • teardown handler (optional)
  • failure handler (optional)
Note:
While you can specify an empty test case (ie. use `ignore_handler` for all callbacks), the harness will abort the test unconditionally.

Definition at line 53 of file utest_case.h.


Member Function Documentation

const char * get_description (  ) const
Returns:
the textual description of the test case

Definition at line 145 of file utest_case.cpp.

bool is_empty (  ) const
Returns:
`true` if setup, test and teardown handlers are set to `ignore_handler`

Definition at line 150 of file utest_case.cpp.