Assimp  v4.1. (December 2018)
test.c File Reference

Classes

struct  buffer_t
 

Macros

#define CRC32DATA1   2220805626
 
#define CRC32DATA2   2532008468
 
#define MZ_FILE_STAT   stat
 
#define MZ_FILE_STAT_STRUCT   stat
 
#define RFILE   "4.txt\0"
 
#define RMODE   0100444
 
#define TESTDATA1   "Some test data 1...\0"
 
#define TESTDATA2   "Some test data 2...\0"
 
#define UNUSED(x)   (void)x
 
#define WFILE   "6.txt\0"
 
#define WMODE   0100666
 
#define XFILE   "7.txt\0"
 
#define XMODE   0100777
 
#define ZIPNAME   "test.zip\0"
 

Functions

int main (int argc, char *argv[])
 
static size_t on_extract (void *arg, unsigned long long offset, const void *data, size_t size)
 
static void test_append (void)
 
static void test_entry_index (void)
 
static void test_entry_name (void)
 
static void test_entry_openbyindex (void)
 
static void test_exe_permissions (void)
 
static void test_extract (void)
 
static void test_fwrite (void)
 
static void test_list_entries (void)
 
static void test_mtime (void)
 
static void test_read (void)
 
static void test_read_permissions (void)
 
static void test_total_entries (void)
 
static void test_write (void)
 
static void test_write_permissions (void)
 

Variables

static int total_entries = 0
 

Macro Definition Documentation

◆ CRC32DATA1

#define CRC32DATA1   2220805626

◆ CRC32DATA2

#define CRC32DATA2   2532008468

◆ MZ_FILE_STAT

#define MZ_FILE_STAT   stat

◆ MZ_FILE_STAT_STRUCT

#define MZ_FILE_STAT_STRUCT   stat

◆ RFILE

#define RFILE   "4.txt\0"

◆ RMODE

#define RMODE   0100444

◆ TESTDATA1

#define TESTDATA1   "Some test data 1...\0"

◆ TESTDATA2

#define TESTDATA2   "Some test data 2...\0"

◆ UNUSED

#define UNUSED (   x)    (void)x

◆ WFILE

#define WFILE   "6.txt\0"

◆ WMODE

#define WMODE   0100666

◆ XFILE

#define XFILE   "7.txt\0"

◆ XMODE

#define XMODE   0100777

◆ ZIPNAME

#define ZIPNAME   "test.zip\0"

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ on_extract()

static size_t on_extract ( void *  arg,
unsigned long long  offset,
const void *  data,
size_t  size 
)
static

◆ test_append()

static void test_append ( void  )
static

◆ test_entry_index()

static void test_entry_index ( void  )
static

◆ test_entry_name()

static void test_entry_name ( void  )
static

◆ test_entry_openbyindex()

static void test_entry_openbyindex ( void  )
static

◆ test_exe_permissions()

static void test_exe_permissions ( void  )
static

◆ test_extract()

static void test_extract ( void  )
static

◆ test_fwrite()

static void test_fwrite ( void  )
static

◆ test_list_entries()

static void test_list_entries ( void  )
static

◆ test_mtime()

static void test_mtime ( void  )
static

◆ test_read()

static void test_read ( void  )
static

◆ test_read_permissions()

static void test_read_permissions ( void  )
static

◆ test_total_entries()

static void test_total_entries ( void  )
static

◆ test_write()

static void test_write ( void  )
static

◆ test_write_permissions()

static void test_write_permissions ( void  )
static

Variable Documentation

◆ total_entries

int total_entries = 0
static