File: datafaker.t

package info (click to toggle)
libdata-faker-perl 0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: perl: 4,681; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test::More;

sub check_this {
	my $arg = shift;
	my $result = shift;

	ok(my $res = `$^X -Ilib ./datafaker $arg`, "Run for $arg");
	like($res,$result,"Results for $arg");
}

check_this('--help', qr/Usage/);
check_this('--help', qr/--help/);
check_this('--datatypes',qr/data/);

done_testing();