libcester
|
#include <cester.h>
Public Attributes | |
unsigned | line_num |
char * | function_name |
char * | original_stream_ptr_str |
char * | replaced_stream_ptr_str |
char * | stream_buffer |
char * | replaced_stream_file_path |
FILE | original_stream |
FILE * | original_stream_handle |
FILE * | replaced_stream_handle |
The structure that manages the stream that has been captured by cester. It keeps record of the original stream and also of the stream that replaces the original, this way when a stream is to be released by cester it can simly set the original stream to it original state with no consequences and the extrac stream can be properlly freed.
char* captured_stream::function_name |
The function name (test case) where the stream was catured. For internal use only.
unsigned captured_stream::line_num |
the line number where the stream was captured. For internal use only.
FILE captured_stream::original_stream |
The actual address of the captured stream. For internal use only.
FILE* captured_stream::original_stream_handle |
The actual variable of the captured stream. For internal use only.
char* captured_stream::original_stream_ptr_str |
The captured stream pointer address as string. For internal use only.
char* captured_stream::replaced_stream_file_path |
The file path to the temporary file that replaces the stream. For internal use only.
FILE* captured_stream::replaced_stream_handle |
The opened file handle that replaces the captured stream. For internal use only.
char* captured_stream::replaced_stream_ptr_str |
The stream to replace the captured stream pointer address as string. For internal use only.
char* captured_stream::stream_buffer |
The stream content. This is needed so we can peoperly free allocated memory. For internal use only.