GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > IMM / V0-2-0

Constituent: test_fpm     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

FPM_testUtility.c File Reference

Various test printing utilities. More...

#include <stdio.h>
#include <string.h>
#include "FPM_tstdefs.h"

Include dependency graph for FPM_testUtility.c:

Include dependency graph

Functions

unsigned int FPM_action (const char *txt)
 Announce an action.

unsigned int FPM_announceMajor (const char *txt)
 Major test announcement.

unsigned int FPM_announceMajorEnd (const char *txt, unsigned int ret)
 Major test end announcement.

unsigned int FPM_announceMinor (const char *txt)
 Minor test announcement.

unsigned int FPM_announceMinorEnd (const char *txt, unsigned int ret)
 Minor test end announcement.

unsigned int FPM_testInt (const char *txt, unsigned int val, unsigned int op, unsigned int lim)
 Test an integer value.

unsigned int FPM_testLng (const char *txt, unsigned long long val, unsigned int op, unsigned long long lim)
 Test an integer value.

unsigned int FPM_testStr (const char *txt, const char *val, unsigned int op, const char *lim)
 Test a string value.


Variables

const char * s_equal = "======================================="
 A rule of equal signs.

const char * s_fail = "fail"
 The string "fail".

const char * s_iop [7] = { "??", "< ", "<=", "==", ">=", "> ", "!=" }
 Strings corresponding to integer comparison operators.

const char * s_minus = "---------------------------------------"
 A string of minus signs.

const char * s_pass = "pass"
 The string "pass".

const char * s_sop [4] = { "???", "=v=", "=l=", "-->" }
 Strings corresponding to string comparison operators.

const char * s_star = "***************************************"
 A rule of stars.

const char * s_what = "????"
 The string "????".


Detailed Description

Various test printing utilities.

CVS $Id: FPM_testUtility.c,v 1.1.1.1 2005/03/18 02:22:08 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int FPM_action const char *  txt  ) 
 

Announce an action.

Parameters:
txt Text string embedded in test dump

unsigned int FPM_announceMajor const char *  txt  ) 
 

Major test announcement.

Parameters:
txt Text string embedded in test dump

unsigned int FPM_announceMajorEnd const char *  txt,
unsigned int  ret
 

Major test end announcement.

Parameters:
txt Text string embedded in test dump
ret Pass/fail

unsigned int FPM_announceMinor const char *  txt  ) 
 

Minor test announcement.

Parameters:
txt Text string embedded in test dump

unsigned int FPM_announceMinorEnd const char *  txt,
unsigned int  ret
 

Minor test end announcement.

Parameters:
txt Text string embedded in test dump
ret Pass/fail

unsigned int FPM_testInt const char *  txt,
unsigned int  val,
unsigned int  op,
unsigned int  lim
 

Test an integer value.

Parameters:
txt Text string embedded in test dump
val The value to test
op The operation
lim The value to test against

unsigned int FPM_testLng const char *  txt,
unsigned long long  val,
unsigned int  op,
unsigned long long  lim
 

Test an integer value.

Parameters:
txt Text string embedded in test dump
val The value to test
op The operation
lim The value to test against

unsigned int FPM_testStr const char *  txt,
const char *  val,
unsigned int  op,
const char *  lim
 

Test a string value.

Parameters:
txt Text string embedded in test dump
val The string to test
op The operation
lim The string to test against


Generated on Sun Jul 17 07:42:30 2005 by doxygen 1.3.3