8
0

Accepting request 25103 from home:rjschwei:perl-perlcritic

Copy from home:rjschwei:perl-perlcritic/perl-Test-Object via accept of submit request 25103 revision 2.
Request was accepted with message:
thanks!

OBS-URL: https://build.opensuse.org/request/show/25103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Object?expand=0&rev=1
This commit is contained in:
2009-11-28 21:42:44 +00:00
committed by Git OBS Bridge
commit b5a09b1cda
5 changed files with 127 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
Test-Object-0.07.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d142a91b039928dc5d616c7bd9bb62ffb06e58991f00c54e26ef7e62ed61032a
size 21685

7
perl-Test-Object.changes Normal file
View File

@@ -0,0 +1,7 @@
-------------------------------------------------------------------
Wed Oct 21 16:31:28 CEST 2009 - rschweikert@novell.com
- Add changes file
- Add %dir directive for directories in %files
- Changelog clean up to only contain initial creation

93
perl-Test-Object.spec Normal file
View File

@@ -0,0 +1,93 @@
#
# spec file for package perl-Test-Object (Version 0.07)
#
# Copyright (c) 2009 Novell
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: perl-Test-Object
Version: 0.07
Release: 1
%define cpan_name Test-Object
Provides: %cpan_name
Requires: perl = %{perl_version}
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License, GPL, see package
URL: http://search.cpan.org/~adamk/Test-Object-0.07/lib/Test/Object.pm
Summary: Test::Object - Thoroughly testing objects via registered handlers
Source0: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
In situations where you have deep trees of classes, there is a common
situation in which you test a module 4 or 5 subclasses down, which
should follow the correct behaviour of not just the subclass, but of all
the parent classes.
This should be done to ensure that the implementation of a subclass has
not somehow "broken" the object's behaviour in a more general sense.
"Test::Object" is a testing package designed to allow you to easily test
what you believe is a valid object against the expected behaviour of all
of the classes in its inheritance tree in one single call.
To do this, you "register" tests (in the form of CODE or function
references) with "Test::Object", with each test associated with a
particular class.
When you call "object_ok" in your test script, "Test::Object" will check
the object against all registered tests. For each class that your object
responds to "$object->isa($class)" for, the appropriate testing function
will be called.
Doing it this way allows adapter objects and other things that respond
to "isa" differently that the default to still be tested against the
classes that it is advertising itself as correctly.
This also means that more than one test might be "counted" for each call
to "object_ok". You should account for this correctly in your expected
test count.
Authors:
Adam Kennedy <adamk@cpan.org>
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%__rm -f %{buildroot}%{perl_vendorarch}/auto/Test/Object/.packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/Test
%dir %{perl_vendorlib}/Test/Object
%{perl_vendorlib}/Test/Object/Test.pm
%{perl_vendorlib}/Test/Object.pm
/var/adm/perl-modules/%{name}
%changelog
* Wed Oct 14 2009 Robert Schweikert <rschweikert@novell.com> - Test-Object
- Initial build.