GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

file_unit_test_private.h File Reference

FILE package unit tests private definitions. More...


Defines

#define FILE_UPL_SIZE   0x10000

Functions

int file_hdr_test_sizeof (void)
int file_hdr_test_param (void)
int file_hdr_test_verify (void)
int file_hdr_test_set (void)
int file_hdr_test_get (void)
int file_path_test_param (void)
int file_path_test_func (void)
int file_swap_test_swap (void)
int file_upl_test_param (void)
int file_upl_test_func (void)
int file_upl_test_err (void)


Detailed Description

FILE package unit tests private definitions.

Author:
D.L. Wood

Define Documentation

#define FILE_UPL_SIZE   0x10000

The size in bytes of maximum upload for this test.

Referenced by file_unit_test(), file_upl_print(), file_upl_test_err(), file_upl_test_func(), and file_upl_test_param().


Function Documentation

int file_hdr_test_get ( void   ) 

Test that the file_hdr member get functions correctly extract values for file headers.

Return values:
0 Success.
-1 Failure

References file_hdr_buf_1, and file_hdr_buf_2.

Referenced by file_unit_test().

int file_hdr_test_param ( void   ) 

Performs invalid and out of range tests on parameters for file_hdr library functions.

Return values:
0 Success.
-1 Failure

References dumpLine, and file_hdr_buf_0.

Referenced by file_unit_test().

int file_hdr_test_set ( void   ) 

Test that the file_hdr header member set functions correctly create and insert values for file headers.

Return values:
0 Success.
-1 Failure

References dumpLine, and file_hdr_buf_0.

Referenced by file_unit_test().

int file_hdr_test_sizeof ( void   ) 

Performs checks on return values from file_hdr sizeof library functions.

Return values:
0 Success.
-1 Failure

Referenced by file_unit_test().

int file_hdr_test_verify ( void   ) 

Test that the file_hdr verification functions detect valid LAT file headers and reject invalid LAT file headers.

Return values:
0 Success.
-1 Failure

References dumpLine, file_hdr_buf_0, file_hdr_buf_3, and file_hdr_buf_4.

Referenced by file_unit_test().

int file_path_test_func ( void   ) 

Test that the file_path functions work correctly on sample paths and file ID's.

Return values:
0 Success.
-1 Failure

References file_id_0, file_id_1, file_id_5, file_id_6, file_path_0, file_path_1, file_path_5, file_path_6, file_usr_dev_5, and file_usr_dev_6.

Referenced by file_unit_test().

int file_path_test_param ( void   ) 

Performs invalid and out of range tests on parameters for file_path library functions.

Return values:
0 Success.
-1 Failure

References dumpLine.

Referenced by file_unit_test().

int file_swap_test_swap ( void   ) 

Test that the file_swap byte swapping functions correctly manipulate LAT file headers from external to local format.

Return values:
0 Success.
-1 Failure

References file_hdr_buf_0, file_hdr_buf_1, file_hdr_buf_2, file_hdr_buf_swap_1, and file_hdr_buf_swap_2.

Referenced by file_unit_test().

int file_upl_test_err ( void   ) 

int file_upl_test_func ( void   ) 

int file_upl_test_param ( void   ) 

Performs invalid and out of range tests on parameters for file_upl library functions.

Return values:
0 Success.
-1 Failure

References dumpLine, file_upl_buf, file_upl_data_0_A, file_upl_data_0_size, FILE_UPL_SIZE, file_upl_start_0, FILE_uplCancel(), FILE_uplCommit(), FILE_uplData(), FILE_uplExit(), FILE_uplInfo(), FILE_uplInit(), FILE_uplPkt(), FILE_uplReset(), FILE_uplSetError(), and FILE_uplStart().

Referenced by file_unit_test().


Generated on Fri Sep 30 18:57:40 2011 by  doxygen 1.5.8