Testing

Testing — Testing interface to libglyr

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <glyr/testing.h>

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

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.

Details

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.

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.

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.

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