GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V3-1-0

Constituent: mem_unit_test     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

mem_test_desc.c File Reference

Test the memory descriptor creation functions. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "MEM/MEM.h"
#include "MEM/MEM_msgs.h"
#include "mem_test_desc.h"
#include "mem_unit_test.h"

Include dependency graph for mem_test_desc.c:

Include dependency graph

Functions

int mem_check_null_desc_params (test_Test_Descriptor *td_p)
 Verify that descriptor creators detect NULL parameter pointers.

int mem_check_dump_command (test_Test_Descriptor *td_p)
 Test the MEM_CreateDescriptorFromDumpCommand function.

void mem_CreateDescriptor_test (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for memory descriptor creation.


Detailed Description

Test the memory descriptor creation functions.

  CVS $Id: mem_test_desc.c,v 1.3 2004/07/19 16:26:47 dmay Exp $
  

Test the operation of the functions that create memory descriptors.


Function Documentation

void mem_check_dump_command test_Test_Descriptor td_p  )  [static]
 

Test the MEM_CreateDescriptorFromDumpCommand function.

Call the MEM_CreateDescriptorFromDumpCommand function with various command packets.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_check_null_desc_params test_Test_Descriptor td_p  )  [static]
 

Verify that descriptor creators detect NULL parameter pointers.

Call the various memory descriptor creation functions and verify that they detect NULL parameter pointers.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_CreateDescriptor_test test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for memory descriptor creation.

Run unit test for memory descriptor creation. Test the creation of memory descriptors from memory dump and load commands.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Returns:
Nothing.

Here is the call graph for this function:


Generated on Mon Dec 13 07:34:43 2004 by doxygen 1.3.3