FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_ununpack-iso.c File Reference

Unit test cases for ExtractISO() More...

#include "run_tests.h"
Include dependency graph for test_ununpack-iso.c:

Go to the source code of this file.

Functions

void testExtractISO ()
 unpack iso file More...
 
void testExtractISO4EmptyParameters ()
 abnormal parameters More...
 
void testExtractISO4ErrorParameters ()
 abnormal parameters More...
 

Variables

static int Result = 0
 
CU_TestInfo ununpack_iso_testcases []
 ISO test cases. More...
 

Detailed Description

Unit test cases for ExtractISO()

Definition in file test_ununpack-iso.c.

Function Documentation

◆ testExtractISO()

void testExtractISO ( )

unpack iso file

Test:
  1. Pass an ISO to ExtractISO()
  2. Check if function returns 0 and files are unpacked

Definition at line 20 of file test_ununpack-iso.c.

◆ testExtractISO4EmptyParameters()

void testExtractISO4EmptyParameters ( )

abnormal parameters

Test:
  1. Pass an empty strings to ExtractISO()
  2. Check if function returns 1

Definition at line 40 of file test_ununpack-iso.c.

◆ testExtractISO4ErrorParameters()

void testExtractISO4ErrorParameters ( )

abnormal parameters

Test:
  1. Pass a non ISO to ExtractISO()
  2. Check if function returns 1 and files are not unpacked

Definition at line 55 of file test_ununpack-iso.c.

Variable Documentation

◆ ununpack_iso_testcases

CU_TestInfo ununpack_iso_testcases[]
Initial value:
=
{
{"testExtractISO: iso file:", testExtractISO},
{"testExtractISO: abnormal parameters:", testExtractISO4EmptyParameters},
{"testExtractISO: error parameters:", testExtractISO4ErrorParameters},
CU_TEST_INFO_NULL
}
void testExtractISO4ErrorParameters()
abnormal parameters
void testExtractISO()
unpack iso file
void testExtractISO4EmptyParameters()
abnormal parameters

ISO test cases.

Definition at line 70 of file test_ununpack-iso.c.