use Mojo::Base -strict;

use Test::More;

plan skip_all => 'set TEST_POD to enable this test (developer only!)'
  unless $ENV{TEST_POD};
plan skip_all => 'Test::Pod::Coverage 1.04+ required for this test!'
  unless eval 'use Test::Pod::Coverage 1.04; 1';

my %RULES = (
  'Mojo::IOLoop'         => {also_private => ['multi_accept']},
  'Mojo::IOLoop::Server' => {also_private => ['multi_accept']},
  'Mojo::Server::Daemon' => {also_private => ['multi_accept']},
  'Mojo::Server::Morbo'  => {also_private => ['check']},
  'Mojo::Template'       => {also_private => ['build', 'compile', 'interpret']},
  'Mojo::Util'           => {also_private => ['xss_escape']}
);
pod_coverage_ok($_, $RULES{$_} || {}) for all_modules();

done_testing();
