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;
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;
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 };
Structure for storing information about a particular file.
Definition: ununpack.h:116
CU_TestInfo ContainerInfo_testcases[]
Container info test cases.
void testDebugContainerInfo()
test function DebugContainerInfo()
static int Result
Result of calls.
Definition: test_CopyFile.c:17
void DebugContainerInfo(ContainerInfo *CI)
Print a ContainerInfo structure.
Definition: utils.c:1085