FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Test cases for Doctored buffer. More...
#include <stdbool.h>
#include "nomos.h"
#include "doctorBuffer_utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <CUnit/CUnit.h>
#include <stdarg.h>
#include "nomos_utils.h"
#include "util.h"
#include "list.h"
#include "licenses.h"
#include "process.h"
#include "nomos_regex.h"
#include "_autodefs.h"
Go to the source code of this file.
Variables | |
CU_TestInfo | doctorBuffer_testcases [] |
Test cases for Doctored buffer.
Definition in file test_DoctoredBuffer.c.
void test_10_compressDoctoredBuffer | ( | ) |
Test for compressDoctoredBuffer()
Definition at line 459 of file test_DoctoredBuffer.c.
void test_1_removeHtmlComments | ( | ) |
Test for removeHtmlComments()
The test are in the order of the function calls in doctorBuffer While the test result does not depend on the order. If possible the output string of the first test is the input string of the second one and so on. Clear exceptions: Input cannot be MarkUp and PostScript simultaneously.. Please do not change the test order in this source file
Later on (in parseLicenses()) we search for URLs in the raw-text
Definition at line 203 of file test_DoctoredBuffer.c.
void test_2_removeLineComments | ( | ) |
Test for removeLineComments()
Definition at line 226 of file test_DoctoredBuffer.c.
void test_3_cleanUpPostscript | ( | ) |
Test for cleanUpPostscript()
Definition at line 250 of file test_DoctoredBuffer.c.
void test_4_removeBackslashesAndGTroffIndicators | ( | ) |
Test for removeBackslashesAndGTroffIndicators()
Definition at line 271 of file test_DoctoredBuffer.c.
void test_5_convertWhitespaceToSpaceAndRemoveSpecialChars | ( | ) |
Test for convertWhitespaceToSpaceAndRemoveSpecialChars()
Definition at line 300 of file test_DoctoredBuffer.c.
void test_6_dehyphen | ( | ) |
Test for dehyphen()
Look for hyphenations of words, to compress both halves into a sin- gle (sic) word. Regex == "[a-z]- [a-z]".
Definition at line 337 of file test_DoctoredBuffer.c.
void test_6a_dehyphen | ( | ) |
Test for dehyphen()
Definition at line 355 of file test_DoctoredBuffer.c.
void test_7_removePunctuation | ( | ) |
Test for removePunctuation()
perl -pe 's,[-_/]+ , ,g;s/print[_a-zA-Z]* //g;s/ / /g;'
Note the added ',' so removePunctuation does ignore commas...
Definition at line 380 of file test_DoctoredBuffer.c.
void test_8_ignoreFunctionCalls | ( | ) |
Test for ignoreFunctionCalls()
Definition at line 409 of file test_DoctoredBuffer.c.
void test_9_convertSpaceToInvisible | ( | ) |
Test for convertSpaceToInvisible()
Definition at line 434 of file test_DoctoredBuffer.c.
void test_doctorBuffer | ( | ) |
Test for doctorBuffer()
Definition at line 49 of file test_DoctoredBuffer.c.
void test_doctorBuffer_fromFile | ( | ) |
Test for idxGrep_recordPosition()
Definition at line 128 of file test_DoctoredBuffer.c.
void test_doctorBuffer_uncollapse | ( | ) |
Test for uncollapsePosition()
Definition at line 75 of file test_DoctoredBuffer.c.
CU_TestInfo doctorBuffer_testcases[] |
Definition at line 479 of file test_DoctoredBuffer.c.