summaryrefslogtreecommitdiff
path: root/tests/linkextractor_tests.h
blob: 49d2c7fd71d9e7bc8a17318fe48154047a44c672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef LINK_EXTRACTOR_TESTS_H
#define LINK_EXTRACTOR_TESTS_H

#include "linkextractor.h"
#include "linktemplates_tests.h"

typedef struct {
  struct LinkTemplates *templates;
  struct LinkExtractor *extractor;
} LinkExtractorFixture;

void link_extractor_fixture_setup(LinkExtractorFixture *fixture,
                                  gconstpointer test_data);
void link_extractor_fixture_teardown(LinkExtractorFixture *fixture,
                                     gconstpointer test_data);

void test_link_extractor_extract(LinkExtractorFixture *fixture,
                                 gconstpointer test_data);
void test_link_extractor_unrecognized_link(LinkExtractorFixture *fixture,
                                           gconstpointer test_data);
void test_link_extractor_append(LinkExtractorFixture *fixture,
                                gconstpointer test_data);
void test_link_extractor_invalid_html(LinkExtractorFixture *fixture,
                                      gconstpointer test_data);
void test_link_extractor_relative_urls(LinkExtractorFixture *fixture,
                                       gconstpointer test_data);
void test_link_extractor_html_title(LinkExtractorFixture *fixture,
                                    G_GNUC_UNUSED gconstpointer test_data);
 
void test_link_extractor_xml(LinkExtractorFixture *fixture,
                             gconstpointer test_data);


#endif // LINK_EXTRACTOR_TESTS_H