Bugzilla – Attachment 33546 Details for
Bug 13223
Plugin housekeeping: do not redefine wrapper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13223: Follow-up - Adding some unit tests
Bug-13223-Follow-up---Adding-some-unit-tests.patch (text/plain), 1.07 KB, created by
Frédéric Demians
on 2014-11-14 07:29:18 UTC
(
hide
)
Description:
Bug 13223: Follow-up - Adding some unit tests
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2014-11-14 07:29:18 UTC
Size:
1.07 KB
patch
obsolete
>From 673ecdfb9546dbac7096de3e19a980120fddd22d Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Thu, 13 Nov 2014 23:06:00 +0100 >Subject: [PATCH] Bug 13223: Follow-up - Adding some unit tests > >Signed-off-by: Frederic Demians <f.demians@tamil.fr> >--- > t/Koha_Util_FrameworkPlugin.t | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100755 t/Koha_Util_FrameworkPlugin.t > >diff --git a/t/Koha_Util_FrameworkPlugin.t b/t/Koha_Util_FrameworkPlugin.t >new file mode 100755 >index 0000000..4b53efa >--- /dev/null >+++ b/t/Koha_Util_FrameworkPlugin.t >@@ -0,0 +1,17 @@ >+#!/usr/bin/perl >+ >+use Modern::Perl; >+use Koha::Util::FrameworkPlugin qw(wrapper); >+use Test::More tests => 6; >+use t::lib::Mocks; >+ >+BEGIN { >+ use_ok('Koha::Util::FrameworkPlugin'); >+} >+ >+my $char; >+is($char=wrapper(' '),'space',"Return space"); >+is($char=wrapper(' '),'dblspace',"Return dblspace"); >+is($char=wrapper('|'),'pipe',"Return pipe"); >+is($char=wrapper('||'),'dblpipe',"Return dblpipe"); >+is($char=wrapper('somethingelse'),'somethingelse',"Return somethingelse"); >-- >2.1.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13223
:
33381
|
33484
|
33489
|
33493
|
33536
|
33537
|
33542
|
33546
|
33547