PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/t/IsItUp.t

http://github.com/duckduckgo/zeroclickinfo-spice
Perl | 52 lines | 45 code | 4 blank | 3 comment | 0 complexity | 5fa71b7eea0de476030026b887860d3a MD5 | raw file
 1#!/usr/bin/env perl
 2
 3use strict;
 4use warnings;
 5use Test::More;
 6use DDG::Test::Spice;
 7use utf8;
 8
 9ddg_spice_test(
10    [qw( DDG::Spice::IsItUp )],
11    'is duckduckgo.com up' => test_spice(
12        '/js/spice/is_it_up/duckduckgo.com',
13        call_type => 'include',
14        caller => 'DDG::Spice::IsItUp',
15    ),
16    'is http://duckduckgo.com up?' => test_spice(
17        '/js/spice/is_it_up/duckduckgo.com',
18        call_type => 'include',
19        caller => 'DDG::Spice::IsItUp',
20    ),
21    'is http://duckduckgo.com online' => test_spice(
22        '/js/spice/is_it_up/duckduckgo.com',
23        call_type => 'include',
24        caller => 'DDG::Spice::IsItUp',
25    ),
26    'http://duckduckgo.com status???????????' => test_spice(
27        '/js/spice/is_it_up/duckduckgo.com',
28        call_type => 'include',
29        caller => 'DDG::Spice::IsItUp',
30    ),
31    'is http://duckduckgo.com down?' => test_spice(
32        '/js/spice/is_it_up/duckduckgo.com',
33        call_type => 'include',
34        caller => 'DDG::Spice::IsItUp',
35    ),
36    'schema.org update time' => undef,
37    # unfortunately, the isitup.com api does not
38    # currently support unicode or ssl
39    'is føtex.dk up?' => undef,
40    'is https://føtex.dk up?' => undef,
41    'is reddit.com working?' => test_spice(
42        '/js/spice/is_it_up/reddit.com',
43        caller    => 'DDG::Spice::IsItUp',
44    ),
45    'is https://twitch.tv up??' => test_spice(
46        '/js/spice/is_it_up/twitch.tv',
47        caller    => 'DDG::Spice::IsItUp',
48    ),
49);
50
51done_testing;
52