FOSSology
4.4.0
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 447 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 191 of file test_DoctoredBuffer.c.
void test_2_removeLineComments | ( | ) |
Test for removeLineComments()
Definition at line 214 of file test_DoctoredBuffer.c.
void test_3_cleanUpPostscript | ( | ) |
Test for cleanUpPostscript()
Definition at line 238 of file test_DoctoredBuffer.c.
void test_4_removeBackslashesAndGTroffIndicators | ( | ) |
Test for removeBackslashesAndGTroffIndicators()
Definition at line 259 of file test_DoctoredBuffer.c.
void test_5_convertWhitespaceToSpaceAndRemoveSpecialChars | ( | ) |
Test for convertWhitespaceToSpaceAndRemoveSpecialChars()
Definition at line 288 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 325 of file test_DoctoredBuffer.c.
void test_6a_dehyphen | ( | ) |
Test for dehyphen()
Definition at line 343 of file test_DoctoredBuffer.c.
void test_7_removePunctuation | ( | ) |
Test for removePunctuation()
Note the added ',' so removePunctuation does ignore commas...
Definition at line 368 of file test_DoctoredBuffer.c.
void test_8_ignoreFunctionCalls | ( | ) |
Test for ignoreFunctionCalls()
Definition at line 397 of file test_DoctoredBuffer.c.
void test_9_convertSpaceToInvisible | ( | ) |
Test for convertSpaceToInvisible()
Definition at line 422 of file test_DoctoredBuffer.c.
void test_doctorBuffer | ( | ) |
Test for doctorBuffer()
Definition at line 37 of file test_DoctoredBuffer.c.
void test_doctorBuffer_fromFile | ( | ) |
Test for idxGrep_recordPosition()
Definition at line 116 of file test_DoctoredBuffer.c.
void test_doctorBuffer_uncollapse | ( | ) |
Test for uncollapsePosition()
Definition at line 63 of file test_DoctoredBuffer.c.
CU_TestInfo doctorBuffer_testcases[] |
Definition at line 467 of file test_DoctoredBuffer.c.