Apache2-AuthCookieDBI
view release on metacpan or search on metacpan
},
{ dbi_encryption_type => 'idea',
expected_cipher_type => 'IDEA',
},
{ dbi_encryption_type => 'blowfish',
expected_cipher_type => 'Blowfish',
},
{ dbi_encryption_type => 'blowfish_pp',
expected_cipher_type => 'Blowfish_PP',
},
{ dbi_encryption_type => 'BLOWFISH_PP', # verify case-insensitive
expected_cipher_type => 'Blowfish_PP',
},
);
foreach my $case (@test_cases) {
my $dbi_encryption_type = $case->{'dbi_encryption_type'};
my $mock_cbc
= CLASS_UNDER_TEST->_get_cipher_for_type( $dbi_encryption_type,
$auth_name, $secret_key, );
Test::More::is( $mock_cbc->{'-key'}, $secret_key,
"_get_cipher_for_type() for $dbi_encryption_type - secret_key" );
t/utils24.t view on Meta::CPAN
},
{ dbi_encryption_type => 'idea',
expected_cipher_type => 'IDEA',
},
{ dbi_encryption_type => 'blowfish',
expected_cipher_type => 'Blowfish',
},
{ dbi_encryption_type => 'blowfish_pp',
expected_cipher_type => 'Blowfish_PP',
},
{ dbi_encryption_type => 'BLOWFISH_PP', # verify case-insensitive
expected_cipher_type => 'Blowfish_PP',
},
);
foreach my $case (@test_cases) {
my $dbi_encryption_type = $case->{'dbi_encryption_type'};
my $mock_cbc
= CLASS_UNDER_TEST->_get_cipher_for_type( $dbi_encryption_type,
$auth_name, $secret_key, );
Test::More::is( $mock_cbc->{'-key'}, $secret_key,
"_get_cipher_for_type() for $dbi_encryption_type - secret_key" );
( run in 1.316 second using v1.01-cache-2.11-cpan-5467b0d2c73 )