Testing

Testing — Testing interface to libglyr

Stability Level

Stable, unless otherwise indicated

Functions

const char * glyr_testing_call_url ()
GlyrMemCache * glyr_testing_call_parser ()

Object Hierarchy


Includes

#include <glyr/testing.h>

Description

A bunch for function that are not meant for general use. They are merely for developers that want to have automated tests for their providers.

Functions

glyr_testing_call_url ()

const char *
glyr_testing_call_url (const char *provider_name,
                       GLYR_GET_TYPE type,
                       GlyrQuery *query);

Call a provider's url-builder function and deliver it's result This is meant for testing purpose only.

Parameters

provider_name

Which provider to ask

 

type

What type the provider belongs to

 

query

What exactly to search for

 

Returns

The URL that the provider would want to download


glyr_testing_call_parser ()

GlyrMemCache *
glyr_testing_call_parser (const char *provider_name,
                          GLYR_GET_TYPE type,
                          GlyrQuery *query,
                          GlyrMemCache *cache);

Call a certain parser. Example: ("google",GLYR_GET_COVERART,&query,pagesource_cache); This is meant for testing purpose only.

Parameters

provider_name

Which provider to ask

 

type

What type the provider belongs to

 

query

What exactly to search for

 

cache

Parseable Input to the parser (e.g. a HTML-page)

 

Returns

A list of more or less finished items.

Types and Values