Improvement for reducing false positives

This commit is contained in:
Luca Deri
2023-09-01 10:26:07 +02:00
parent 74fdac7d77
commit 854c2d80f1
2 changed files with 22 additions and 8 deletions
+14
View File
@@ -5473,6 +5473,19 @@ void domainSearchUnitTest() {
/* *********************************************** */
void domainSearchUnitTest2() {
ndpi_domain_classify *c = ndpi_domain_classify_alloc();
u_int16_t class_id = 9;
ndpi_domain_classify_add(c, class_id, "ntop.org");
ndpi_domain_classify_add(c, class_id, "apple.com");
assert(ndpi_domain_classify_contains(c,"ntop.com") == 0);
ndpi_domain_classify_free(c);
}
/* *********************************************** */
/**
@brief MAIN FUNCTION
**/
@@ -5513,6 +5526,7 @@ int main(int argc, char **argv) {
#endif
domainSearchUnitTest();
domainSearchUnitTest2();
sketchUnitTest();
linearUnitTest();
zscoreUnitTest();