FOSSology  4.6.0
Open Source License Compliance by Open Source Software
test_ununpack-lzip.c File Reference

Unit test cases for ExtractLzip() More...

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

Go to the source code of this file.

Functions

void testExtractLzipFile ()
 unpack lzip file More...
 
void testExtractTlzFile ()
 unpack tlz (tar.lz) file More...
 
void testExtractTarLzFile ()
 unpack tar.lz file More...
 
void testExtractLzipEmptyParameters ()
 abnormal parameters More...
 
void testExtractLzipErrorParameters ()
 abnormal parameters More...
 

Variables

static int Result = 0
 
CU_TestInfo ExtractLzip_testcases []
 Lzip test cases. More...
 

Detailed Description

Unit test cases for ExtractLzip()

Definition in file test_ununpack-lzip.c.

Function Documentation

◆ testExtractLzipEmptyParameters()

void testExtractLzipEmptyParameters ( )

abnormal parameters

Test:
  1. Call ExtractLzip() with empty parameters
  2. Check if the function return NOT OK

Definition at line 88 of file test_ununpack-lzip.c.

◆ testExtractLzipErrorParameters()

void testExtractLzipErrorParameters ( )

abnormal parameters

Test:
  1. Try to extract non-existent archives using ExtractLzip()
  2. Check if the function return NOT OK

Definition at line 104 of file test_ununpack-lzip.c.

◆ testExtractLzipFile()

void testExtractLzipFile ( )

unpack lzip file

Test:
  1. Try to extract .lz file using ExtractLzip()
  2. Check if the files are unpacked

Definition at line 24 of file test_ununpack-lzip.c.

◆ testExtractTarLzFile()

void testExtractTarLzFile ( )

unpack tar.lz file

Test:
  1. Try to extract .tar.lz archives using ExtractLzip()
  2. Check if the files are unpacked

Definition at line 67 of file test_ununpack-lzip.c.

◆ testExtractTlzFile()

void testExtractTlzFile ( )

unpack tlz (tar.lz) file

Test:
  1. Try to extract .tlz archives using ExtractLzip()
  2. Check if the files are unpacked

Definition at line 46 of file test_ununpack-lzip.c.

Variable Documentation

◆ ExtractLzip_testcases

CU_TestInfo ExtractLzip_testcases[]
Initial value:
=
{
{"Testing function ExtractLzip for .lz file:", testExtractLzipFile},
{"Testing function ExtractLzip for .tlz file:", testExtractTlzFile},
{"Testing function ExtractLzip for .tar.lz file:", testExtractTarLzFile},
{"Testing function ExtractLzip for empty parameters:", testExtractLzipEmptyParameters},
{"Testing function ExtractLzip for error parameters:", testExtractLzipErrorParameters},
CU_TEST_INFO_NULL
}
void testExtractTarLzFile()
unpack tar.lz file
void testExtractLzipErrorParameters()
abnormal parameters
void testExtractTlzFile()
unpack tlz (tar.lz) file
void testExtractLzipEmptyParameters()
abnormal parameters
void testExtractLzipFile()
unpack lzip file

Lzip test cases.

Definition at line 120 of file test_ununpack-lzip.c.