Top |
Internal Unit Test UtilitiesInternal Unit Test Utilities — Utility functions for use with unit tests. |
void | modulemd_test_signal_handler () |
void | parser_skip_headers () |
void | parser_skip_document_start () |
void
modulemd_test_signal_handler (int sig_num
);
Sets the global variable modulemd_test_signal with the value of the signal that was received.
Since: 2.0
void
parser_skip_headers (yaml_parser_t *parser
);
This function will advance the parser object past the initial STREAM_START, DOCUMENT_START and MAPPING_START events to the first real entry in the first document of the YAML stream. This is intended for unit tests to move the parser location to the start of the object representation to be tested.
Since: 2.0
void
parser_skip_document_start (yaml_parser_t *parser
);
This function will advance the parser object past the initial STREAM_START, and DOCUMENT_START events to the first real entry in the first mapping of the YAML stream. This is intended for unit tests to move the parser location to the start of the object representation to be tested.
Since: 2.0