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

Unit test cases for Isxxx functions. More...

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

Go to the source code of this file.

Functions

void testIsDebianSourceFile ()
 function IsDebianSourceFile(char *Filename) More...
 
void testIsNotDebianSourceFile ()
 function IsDebianSourceFile(char *Filename) More...
 
void testIsExeFile ()
 function IsExe(char *Filename) More...
 
void testIsNotExeFile ()
 function IsExe(char *Filename) More...
 

Variables

static int Result = 0
 
CU_TestInfo IsFunctions_testcases []
 Isxxx() test cases. More...
 

Detailed Description

Unit test cases for Isxxx functions.

Definition in file test_IsFunctions.c.

Function Documentation

◆ testIsDebianSourceFile()

void testIsDebianSourceFile ( )

function IsDebianSourceFile(char *Filename)

Test:
  1. Call IsDebianSourceFile() on dsc file
  2. Check if function returns YES

Definition at line 19 of file test_IsFunctions.c.

◆ testIsExeFile()

void testIsExeFile ( )

function IsExe(char *Filename)

Test:
  1. Call IsDebianSourceFile() on exe file
  2. Check if function returns YES

Definition at line 45 of file test_IsFunctions.c.

◆ testIsNotDebianSourceFile()

void testIsNotDebianSourceFile ( )

function IsDebianSourceFile(char *Filename)

Test:
  1. Call IsDebianSourceFile() on non dsc file
  2. Check if function returns NO

Definition at line 32 of file test_IsFunctions.c.

◆ testIsNotExeFile()

void testIsNotExeFile ( )

function IsExe(char *Filename)

Test:
  1. Call IsDebianSourceFile() on non exe file
  2. Check if function returns NO

Definition at line 58 of file test_IsFunctions.c.

Variable Documentation

◆ IsFunctions_testcases

CU_TestInfo IsFunctions_testcases[]
Initial value:
=
{
{"IsDebianSourceFile:", testIsDebianSourceFile},
{"IsNotDebianSourceFile:", testIsNotDebianSourceFile},
{"IsNotExeFile:", testIsNotExeFile},
CU_TEST_INFO_NULL
}
void testIsDebianSourceFile()
function IsDebianSourceFile(char *Filename)
void testIsNotDebianSourceFile()
function IsDebianSourceFile(char *Filename)
void testIsNotExeFile()
function IsExe(char *Filename)

Isxxx() test cases.

Definition at line 69 of file test_IsFunctions.c.