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

Unit test cases for ExtractZstd() More...

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

Go to the source code of this file.

Functions

void testExtractZstdFile ()
 unpack ZSTd file More...
 
void testExtractZstlz4File ()
 unpack lz4 file More...
 
void testExtractZstlzmaFile ()
 unpack lzma file More...
 
void testExtractZst4EmptyParameters ()
 abnormal parameters More...
 
void testExtractZst4ErrorParameters ()
 abnormal parameters More...
 

Variables

static int Result = 0
 
CU_TestInfo ExtractZstd_testcases []
 Zstd test cases. More...
 

Detailed Description

Unit test cases for ExtractZstd()

Definition in file test_ununpack-zstd.c.

Function Documentation

◆ testExtractZst4EmptyParameters()

void testExtractZst4EmptyParameters ( )

abnormal parameters

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

Definition at line 78 of file test_ununpack-zstd.c.

◆ testExtractZst4ErrorParameters()

void testExtractZst4ErrorParameters ( )

abnormal parameters

Test:
  1. Try to extract null_file archives using ExtractZst()
  2. Check if the function return NOT OK

Definition at line 93 of file test_ununpack-zstd.c.

◆ testExtractZstdFile()

void testExtractZstdFile ( )

unpack ZSTd file

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

Definition at line 21 of file test_ununpack-zstd.c.

◆ testExtractZstlz4File()

void testExtractZstlz4File ( )

unpack lz4 file

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

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

◆ testExtractZstlzmaFile()

void testExtractZstlzmaFile ( )

unpack lzma file

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

Definition at line 59 of file test_ununpack-zstd.c.

Variable Documentation

◆ ExtractZstd_testcases

CU_TestInfo ExtractZstd_testcases[]
Initial value:
=
{
{"Testing function testExtractZst for archive file:", testExtractZstdFile},
{"Testing function testExtractZst for lz4 file:", testExtractZstlz4File},
{"Testing function testExtractZst for lzma file:", testExtractZstlzmaFile},
{"Testing function testExtractZst for abnormal parameters:", testExtractZst4EmptyParameters},
{"Testing function testExtractZst for error parameters:", testExtractZst4ErrorParameters},
CU_TEST_INFO_NULL
}
void testExtractZstdFile()
unpack ZSTd file
void testExtractZst4EmptyParameters()
abnormal parameters
void testExtractZstlzmaFile()
unpack lzma file
void testExtractZst4ErrorParameters()
abnormal parameters
void testExtractZstlz4File()
unpack lz4 file

Zstd test cases.

Definition at line 108 of file test_ununpack-zstd.c.