FOSSology
4.4.0
Open Source License Compliance by Open Source Software
test_ContainerInfo.c
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: © 2012 Hewlett-Packard Development Company, L.P.
3
4
SPDX-License-Identifier: GPL-2.0-only
5
*/
10
#include "run_tests.h"
11
12
static
int
Result
= 0;
13
static
ContainerInfo
*CI = NULL;
20
void
testDebugContainerInfo
()
21
{
22
struct
stat Stat = {0};
23
ParentInfo
PI = {0, 1287725739, 1287725739, 0, 0};
24
ContainerInfo
CITest = {
25
"../testdata/test.zip"
,
"./test-result/"
,
"test.zip"
,
26
"test.zip.dir"
, 1, 1, 0, 0, Stat, PI, 0, 0, 0, 9, 0, 0};
27
CI = &CITest;
28
DebugContainerInfo
(CI);
29
FO_ASSERT_EQUAL(
Result
, 0);
30
}
31
32
/* ************************************************************************** */
33
/* **** cunit test cases **************************************************** */
34
/* ************************************************************************** */
35
36
CU_TestInfo
ContainerInfo_testcases
[] =
37
{
38
{
"DebugContainerInfo:"
,
testDebugContainerInfo
},
39
//{"IsNotDebianSourceFile:", testIsNotDebianSourceFile},
40
CU_TEST_INFO_NULL
41
};
ContainerInfo
Structure for storing information about a particular file.
Definition:
ununpack.h:116
ParentInfo
Definition:
ununpack.h:76
ContainerInfo_testcases
CU_TestInfo ContainerInfo_testcases[]
Container info test cases.
Definition:
test_ContainerInfo.c:36
testDebugContainerInfo
void testDebugContainerInfo()
test function DebugContainerInfo()
Definition:
test_ContainerInfo.c:20
Result
static int Result
Result of calls.
Definition:
test_CopyFile.c:17
DebugContainerInfo
void DebugContainerInfo(ContainerInfo *CI)
Print a ContainerInfo structure.
Definition:
utils.c:1085
src
ununpack
agent_tests
Unit
test_ContainerInfo.c
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1