File: interface.t

package info (click to toggle)
libbusiness-isbn-perl 3.003-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,412 kB
  • ctags: 89
  • sloc: perl: 647; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
use strict;

use Test::More 'no_plan';

my $class = 'Business::ISBN';

my @methods = qw( as_isbn10 as_isbn13 _set_prefix 
	_set_type _hyphen_positions );

eval { Business::ISBN->_hyphen_positions };

foreach my $method ( @methods )
	{
	my $result = eval { no strict 'refs'; &{"${class}::$method"} };
	ok( defined $@, "Unimplemented method [$method] croaks" );
	}