Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
perl-Test-Deep
perl-Test-Deep.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Test-Deep.spec of Package perl-Test-Deep
# # spec file for package perl-Test-Deep # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Test-Deep Version: 0.109 Release: 0 %define cpan_name Test-Deep Summary: Extremely flexible deep comparison License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Deep/ Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::NoWarnings) >= 0.02 BuildRequires: perl(Test::Tester) >= 0.04 #BuildRequires: perl(A) #BuildRequires: perl(Test::Deep) #BuildRequires: perl(Test::Deep::Array) #BuildRequires: perl(Test::Deep::Cache) #BuildRequires: perl(Test::Deep::Cache::Simple) #BuildRequires: perl(Test::Deep::Class) #BuildRequires: perl(Test::Deep::Cmp) #BuildRequires: perl(Test::Deep::Hash) #BuildRequires: perl(Test::Deep::HashElements) #BuildRequires: perl(Test::Deep::HashKeys) #BuildRequires: perl(Test::Deep::HashKeysOnly) #BuildRequires: perl(Test::Deep::Methods) #BuildRequires: perl(Test::Deep::MM) #BuildRequires: perl(Test::Deep::NoTest) #BuildRequires: perl(Test::Deep::Ref) #BuildRequires: perl(Test::Deep::RegexpMatches) #BuildRequires: perl(Test::Deep::RegexpVersion) #BuildRequires: perl(Test::Deep::Set) #BuildRequires: perl(Test::Deep::Stack) #BuildRequires: perl(t::std) Requires: perl(Test::NoWarnings) >= 0.02 Requires: perl(Test::Tester) >= 0.04 %{perl_requires} %description If you don't know anything about automated testing in Perl then you should probably read about Test::Simple and Test::More before preceding. Test::Deep uses the Test::Builder framework. Test::Deep gives you very flexible ways to check that the result you got is the result you were expecting. At it's simplest it compares two structures by going through each level, ensuring that the values match, that arrays and hashes have the same elements and that references are blessed into the correct class. It also handles circular data structures without getting caught in an infinite loop. Where it becomes more interesting is in allowing you to do something besides simple exact comparisons. With strings, the 'eq' operator checks that 2 strings are exactly equal but sometimes that's not what you want. When you don't know exactly what the string should be but you do know some things about how it should look, 'eq' is no good and you must use pattern matching instead. Test::Deep provides pattern matching for complex data structures %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc CHANGES README TODO %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor