libtld: /home/snapwebsites/snapcpp/contrib/libtld/tests/tld_internal_test.c File Reference

libtld  1.5.13
A library to determine the Top-Level Domain name of any URL.
tld_internal_test.c File Reference

Test the tld.c, tld_data.c, and tld_domain_to_lowercase.c functions. More...

#include "tld.c"
#include "tld_data.c"
#include "tld_domain_to_lowercase.c"
#include <stdlib.h>
#include <string.h>
Include dependency graph for tld_internal_test.c:

Go to the source code of this file.


int main (int argc, char *argv[])
void test_compare ()
void test_search ()
void test_search_all ()
void test_search_array (int start, int end)


int err_count = 0
int verbose = 0

Detailed Description

This file implements various tests that can directly access the internal functions of the tld.c, tld_data.c, and tld_domain_to_lowercase.c files.

For that purpose we directly include those files in this test. This is why the test is not actually linked against the library, it includes it within itself.

Definition in file tld_internal_test.c.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly