tests/gpt_misc_tests.c
/**
 * Reset mock data (for use before each test)
 */
Reset mock data (for use before each test)
Reset mock data ( for use before each test )
static void ResetMocks(void)
{
	ResetCallLog();
	memset(&mock_disk, 0, sizeof(mock_disk));
	SetupGptHeader(mock_gpt_primary, 0);
	SetupGptHeader(mock_gpt_secondary, 1);
	disk_read_to_fail = -1;
	disk_write_to_fail = -1;
}
static void ResetMocks ( void ) { ResetCallLog ( ) ; memset ( & mock_disk , 0 , sizeof ( mock_disk ) ) ; SetupGptHeader ( mock_gpt_primary , 0 ) ; SetupGptHeader ( mock_gpt_secondary , 1 ) ; disk_read_to_fail = -1 ; disk_write_to_fail = -1 ; }
Reset mock data (for use before each test)
Reset mock data ( for use before each test )