FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_TraverseChild.c File Reference

Unit test cases for TraverseChild() More...

#include "run_tests.h"
Include dependency graph for test_TraverseChild.c:

Go to the source code of this file.

Functions

int TraverseChildInit ()
 initialize
 
void testTraverseChild4IsoFile ()
 ununpack iso file More...
 
void testTraverseChild4DebianSourceFile ()
 unpack debian source More...
 
void testTraverseChild4PartitionFile ()
 test the partition file More...
 

Variables

unpackqueue Queue [MAXCHILD+1]
 Manage children.
 
int Index = 0
 
struct stat Stat
 
CU_TestInfo TraverseChild_testcases []
 TraverseChild() test cases. More...
 

Detailed Description

Unit test cases for TraverseChild()

Definition in file test_TraverseChild.c.

Function Documentation

◆ testTraverseChild4DebianSourceFile()

void testTraverseChild4DebianSourceFile ( )

unpack debian source

Test:
  1. Create a ContainerInfor for a DSC file
  2. Pass it to TraverseChild()
  3. Check if files are unpacked

Definition at line 80 of file test_TraverseChild.c.

◆ testTraverseChild4IsoFile()

void testTraverseChild4IsoFile ( )

ununpack iso file

Test:
  1. Create a ContainerInfor for an ISO file
  2. Pass it to TraverseChild()
  3. Check if files are unpacked

Definition at line 32 of file test_TraverseChild.c.

◆ testTraverseChild4PartitionFile()

void testTraverseChild4PartitionFile ( )

test the partition file

Test:
  1. Create a ContainerInfor for a partition files
  2. Pass it to TraverseChild()
  3. Check if files are unpacked
Todo:
Test file does not exists

Definition at line 127 of file test_TraverseChild.c.

Variable Documentation

◆ TraverseChild_testcases

CU_TestInfo TraverseChild_testcases[]
Initial value:
=
{
{"TraverseChild for iso file:", testTraverseChild4IsoFile},
{"TraverseChild for debian source file:", testTraverseChild4DebianSourceFile},
CU_TEST_INFO_NULL
}
void testTraverseChild4DebianSourceFile()
unpack debian source
void testTraverseChild4IsoFile()
ununpack iso file

TraverseChild() test cases.

Definition at line 164 of file test_TraverseChild.c.