Skip to content

Instantly share code, notes, and snippets.

@zigorou
Created December 30, 2011 13:28
Show Gist options
  • Select an option

  • Save zigorou/1539858 to your computer and use it in GitHub Desktop.

Select an option

Save zigorou/1539858 to your computer and use it in GitHub Desktop.
For zentooo
#!/usr/bin/env perl
use strict;
use warnings;
package Test::User;
use Data::RuledFactory::Declare;
factory {
name "Default";
define "id" => ( Sequence => +{} );
define "name" => ( StringRandom => +{ data => q|\w{8,10}| } );
};
package main;
use Data::Dump qw(dump);
my $default_user = Test::User->build("Default");
dump($default_user);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment