CLI.pm 506 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Test::More qw{no_plan};
  5. main();
  6. sub main {
  7. my $class = 'Fcm::Interactive::InputGetter::CLI';
  8. use_ok($class);
  9. test_constructor($class);
  10. }
  11. ################################################################################
  12. # Tests usage of constructor
  13. sub test_constructor {
  14. my ($class) = @_;
  15. my $prefix = 'constructor';
  16. my $input_getter = $class->new({});
  17. isa_ok($input_getter, $class);
  18. }
  19. # TODO: tests the invoke method
  20. __END__