GrafX2 2.9.3227
The ultimate 256-color painting program
testio.c File Reference

Unit tests. More...

#include <stdlib.h>
#include <string.h>
#include "tests.h"
#include "../struct.h"
#include "../io.h"
#include "../realpath.h"
#include "../gfx2mem.h"
#include "../gfx2log.h"
+ Include dependency graph for testio.c:

Data Structures

struct  dir_callback_data
 data structure for For_each_directory_entry() callback More...
 

Functions

int Test_Read_Write_byte (char *errmsg)
 
int Test_Read_Write_word (char *errmsg)
 
int Test_Read_Write_dword (char *errmsg)
 
int Test_Read_Write_bytes (char *errmsg)
 
static void directory_callback (void *pdata, const char *filename, const word *unicode_filename, byte is_file, byte is_directory, byte is_hidden)
 callback for For_each_directory_entry() More...
 
int Test_File_exists (char *errmsg)
 
int Test_Realpath (char *errmsg)
 
int Test_Calculate_relative_path (char *errmsg)
 

Detailed Description

Unit tests.

Function Documentation

◆ Test_Read_Write_byte()

int Test_Read_Write_byte ( char *  errmsg)

◆ Test_Read_Write_word()

◆ Test_Read_Write_dword()

◆ Test_Read_Write_bytes()

◆ directory_callback()

static void directory_callback ( void *  pdata,
const char *  filename,
const word unicode_filename,
byte  is_file,
byte  is_directory,
byte  is_hidden 
)
static

◆ Test_File_exists()

◆ Test_Realpath()

int Test_Realpath ( char *  errmsg)

◆ Test_Calculate_relative_path()

int Test_Calculate_relative_path ( char *  errmsg)