Debian Codegraph @

t/ResultSet/Shortcut/Search/Base.t

raw
1 #!perl
2
3 use strict;
4 use warnings;
5
6 use lib 't/lib';
7 use Test::More;
8 use Test::Deep;
9
10 use TestSchema;
11 my $schema = TestSchema->deploy_or_connect();
12 $schema->prepopulate;
13
14 my $rs = $schema->resultset('Foo');
15
16 cmp_deeply ['fizz', 'bizz'], [$rs->_helper_unwrap_columns('fizz', 'bizz')], 'unwrap array';
17 cmp_deeply ['fizz', 'bizz'], [$rs->_helper_unwrap_columns(['fizz', 'bizz'])], 'unwrap arrayref';
18
19 is $rs->_helper_meify('id'), 'id', 'not meifying';
20 is $rs->_helper_meify('.id'), 'me.id', 'meifying';
21
22 done_testing;