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