Skip to content

Instantly share code, notes, and snippets.

@EdwardIII
Created April 27, 2011 14:30
Show Gist options
  • Save EdwardIII/944341 to your computer and use it in GitHub Desktop.
Save EdwardIII/944341 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Test::More;
BEGIN { use_ok 'StockRoom::Model::StockDB' }
my $schema = StockRoom::Model::StockDB->new;
my $parts = $schema->resultset('TblStock')->search(undef,
{
page => 1,
rows => 10,
}
);
diag("no. rows: " . $parts->pager->total_entries);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment