Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Test-Metrics-Any for 
openSUSE:Factory checked in at 2026-11-03 17:59:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-Metrics-Any (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Test-Metrics-Any.new.1257 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Test-Metrics-Any"

Tue Nov  3 17:59:58 2026 rev:2 rq:1394691 version:0.20.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Test-Metrics-Any/perl-Test-Metrics-Any.changes  
    2020-10-26 16:23:20.259274120 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Test-Metrics-Any.new.1257/perl-Test-Metrics-Any.changes
    2026-11-03 18:05:29.789355887 +0100
@@ -1,0 +2,17 @@
+Thu Oct  1 11:41:52 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 0.20.0 (0.02)
+   see /usr/share/doc/packages/perl-Test-Metrics-Any/Changes
+
+  0.02    2026-09-30
+          [CHANGES]
+           * General style refresh
+              + Minimum perl version 5.20
+              + Use subroutine signatures (mostly)
+              + Minor Pod style updates
+              + Swap unit tests from `Test::More` to `Test2::V0`
+           * Defend unit tests against changes to perl's reporting of line
+             numbers in code involving multi-line anonymous subroutines
+             (Perl #24396)
+
+-------------------------------------------------------------------

Old:
----
  Test-Metrics-Any-0.01.tar.gz

New:
----
  README.md
  Test-Metrics-Any-0.02.tar.gz
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Test-Metrics-Any.spec ++++++
--- /var/tmp/diff_new_pack.Mpb9kU/_old  2026-11-03 18:05:31.258417630 +0100
+++ /var/tmp/diff_new_pack.Mpb9kU/_new  2026-11-03 18:05:31.260417714 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Test-Metrics-Any
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,28 @@
 #
 
 
+%define cpan_name Test-Metrics-Any
 Name:           perl-Test-Metrics-Any
-Version:        0.01
+Version:        0.20.0
 Release:        0
-%define cpan_name Test-Metrics-Any
-Summary:        Assert that code produces metrics via L<Metrics::Any>
+# 0.02 -> normalize -> 0.20.0
+%define cpan_version 0.02
 License:        Artistic-1.0 OR GPL-1.0-or-later
-Group:          Development/Libraries/Perl
+Summary:        Assert that code produces metrics via Metrics::Any
 URL:            https://metacpan.org/release/%{cpan_name}
-Source0:        
https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{cpan_version}.tar.gz
+Source100:      README.md
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Metrics::Any::Adapter)
 BuildRequires:  perl(Metrics::Any::Adapter::Test)
-BuildRequires:  perl(Module::Build) >= 0.400400
-BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(Module::Build) >= 0.400.400
+BuildRequires:  perl(Test2::V0)
 Requires:       perl(Metrics::Any::Adapter)
 Requires:       perl(Metrics::Any::Adapter::Test)
+Provides:       perl(Test::Metrics::Any) = %{version}
+%undefine       __perllib_provides
 %{perl_requires}
 
 %description
@@ -45,21 +48,20 @@
 'Test'.
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{cpan_version} -p1
 
 %build
-perl Build.PL installdirs=vendor
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build build --flags=%{?_smp_mflags}
 
 %check
 ./Build test
 
 %install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes README
 %license LICENSE
 

++++++ README.md ++++++

## Build Results

Current state of perl in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/perl-Test-Metrics-Any/standard)

The current state of perl in the devel project build (devel:languages:perl)

![Devel project build 
results](https://br.opensuse.org/status/devel:languages:perl/perl-Test-Metrics-Any)



++++++ Test-Metrics-Any-0.01.tar.gz -> Test-Metrics-Any-0.02.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/.editorconfig 
new/Test-Metrics-Any-0.02/.editorconfig
--- old/Test-Metrics-Any-0.01/.editorconfig     1970-01-01 01:00:00.000000000 
+0100
+++ new/Test-Metrics-Any-0.02/.editorconfig     2026-09-30 17:55:53.000000000 
+0200
@@ -0,0 +1,4 @@
+root = true
+
+[*.{pm,pl,t}]
+indent_size = 3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/Build.PL 
new/Test-Metrics-Any-0.02/Build.PL
--- old/Test-Metrics-Any-0.01/Build.PL  2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/Build.PL  2026-09-30 17:55:53.000000000 +0200
@@ -1,3 +1,4 @@
+use v5;
 use strict;
 use warnings;
 
@@ -6,6 +7,8 @@
 my $build = Module::Build->new(
    module_name => 'Test::Metrics::Any',
    requires => {
+      'perl' => '5.020',
+
       'Metrics::Any::Adapter' => 0,
       'Metrics::Any::Adapter::Test' => 0,
       'Test::Builder::Module' => 0,
@@ -14,7 +17,7 @@
       'Module::Build' => '0.4004', # test_requires
    },
    test_requires => {
-      'Test::More' => '0.88', # done_testing
+      'Test2::V0' => 0,
    },
    license => 'perl',
    create_license => 1,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/Changes 
new/Test-Metrics-Any-0.02/Changes
--- old/Test-Metrics-Any-0.01/Changes   2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/Changes   2026-09-30 17:55:53.000000000 +0200
@@ -1,4 +1,15 @@
 Revision history for Test-Metrics-Any
 
+0.02    2026-09-30
+        [CHANGES]
+         * General style refresh
+            + Minimum perl version 5.20
+            + Use subroutine signatures (mostly)
+            + Minor Pod style updates
+            + Swap unit tests from `Test::More` to `Test2::V0`
+         * Defend unit tests against changes to perl's reporting of line
+           numbers in code involving multi-line anonymous subroutines
+           (Perl #24396)
+
 0.01    2020-05-05
         First version, released on an unsuspecting world.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/LICENSE 
new/Test-Metrics-Any-0.02/LICENSE
--- old/Test-Metrics-Any-0.01/LICENSE   2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/LICENSE   2026-09-30 17:55:53.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2020 by Paul Evans <[email protected]>.
+This software is copyright (c) 2026 by Paul Evans <[email protected]>.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2020 by Paul Evans <[email protected]>.
+This software is Copyright (c) 2026 by Paul Evans <[email protected]>.
 
 This is free software, licensed under:
 
@@ -22,7 +22,7 @@
                      Version 1, February 1989
 
  Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+                    <https://fsf.org/>
 
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
@@ -236,8 +236,7 @@
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 
USA
+    along with this program; if not, see <https://www.gnu.org/licenses/>.
 
 
 Also add information on how to contact you by electronic and paper mail.
@@ -264,116 +263,149 @@
   program `Gnomovision' (a program to direct compilers to make passes
   at assemblers) written by James Hacker.
 
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
+  <signature of Moe Ghoul>, 1 April 1989
+  Moe Ghoul, President of Vice
 
 That's all there is to it!
 
 
---- The Artistic License 1.0 ---
+--- The Perl Artistic License 1.0 ---
 
-This software is Copyright (c) 2020 by Paul Evans <[email protected]>.
+This software is Copyright (c) 2026 by Paul Evans <[email protected]>.
 
 This is free software, licensed under:
 
-  The Artistic License 1.0
+  The Perl Artistic License 1.0
 
-The Artistic License
 
-Preamble
 
-The intent of this document is to state the conditions under which a Package
-may be copied, such that the Copyright Holder maintains some semblance of
-artistic control over the development of the package, while giving the users of
-the package the right to use and distribute the Package in a more-or-less
-customary fashion, plus the right to make reasonable modifications.
+
+
+                         The "Artistic License"
+
+                                Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
 
 Definitions:
 
-  - "Package" refers to the collection of files distributed by the Copyright
-    Holder, and derivatives of that collection of files created through
-    textual modification. 
-  - "Standard Version" refers to such a Package if it has not been modified,
-    or has been modified in accordance with the wishes of the Copyright
-    Holder. 
-  - "Copyright Holder" is whoever is named in the copyright or copyrights for
-    the package. 
-  - "You" is you, if you're thinking about copying or distributing this 
Package.
-  - "Reasonable copying fee" is whatever you can justify on the basis of media
-    cost, duplication charges, time of people involved, and so on. (You will
-    not be required to justify it to the Copyright Holder, but only to the
-    computing community at large as a market that must bear the fee.) 
-  - "Freely Available" means that no fee is charged for the item itself, though
-    there may be fees involved in handling the item. It also means that
-    recipients of the item may redistribute it under the same conditions they
-    received it. 
+        "Package" refers to the collection of files distributed by the
+        Copyright Holder, and derivatives of that collection of files
+        created through textual modification.
+
+        "Standard Version" refers to such a Package if it has not been
+        modified, or has been modified in accordance with the wishes
+        of the Copyright Holder as specified below.
+
+        "Copyright Holder" is whoever is named in the copyright or
+        copyrights for the package.
+
+        "You" is you, if you're thinking about copying or distributing
+        this Package.
+
+        "Reasonable copying fee" is whatever you can justify on the
+        basis of media cost, duplication charges, time of people involved,
+        and so on.  (You will not be required to justify it to the
+        Copyright Holder, but only to the computing community at large
+        as a market that must bear the fee.)
+
+        "Freely Available" means that no fee is charged for the item
+        itself, though there may be fees involved in handling the item.
+        It also means that recipients of the item may redistribute it
+        under the same conditions they received it.
 
 1. You may make and give away verbatim copies of the source form of the
 Standard Version of this Package without restriction, provided that you
 duplicate all of the original copyright notices and associated disclaimers.
 
-2. You may apply bug fixes, portability fixes and other modifications derived
-from the Public Domain or from the Copyright Holder. A Package modified in such
-a way shall still be considered the Standard Version.
-
-3. You may otherwise modify your copy of this Package in any way, provided that
-you insert a prominent notice in each changed file stating how and when you
-changed that file, and provided that you do at least ONE of the following:
-
-  a) place your modifications in the Public Domain or otherwise make them
-     Freely Available, such as by posting said modifications to Usenet or an
-     equivalent medium, or placing the modifications on a major archive site
-     such as ftp.uu.net, or by allowing the Copyright Holder to include your
-     modifications in the Standard Version of the Package.
-
-  b) use the modified Package only within your corporation or organization.
-
-  c) rename any non-standard executables so the names do not conflict with
-     standard executables, which must also be provided, and provide a separate
-     manual page for each non-standard executable that clearly documents how it
-     differs from the Standard Version.
-
-  d) make other distribution arrangements with the Copyright Holder.
-
-4. You may distribute the programs of this Package in object code or executable
-form, provided that you do at least ONE of the following:
-
-  a) distribute a Standard Version of the executables and library files,
-     together with instructions (in the manual page or equivalent) on where to
-     get the Standard Version.
-
-  b) accompany the distribution with the machine-readable source of the Package
-     with your modifications.
-
-  c) accompany any non-standard executables with their corresponding Standard
-     Version executables, giving the non-standard executables non-standard
-     names, and clearly documenting the differences in manual pages (or
-     equivalent), together with instructions on where to get the Standard
-     Version.
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain or from the Copyright Holder.  A Package
+modified in such a way shall still be considered the Standard Version.
 
-  d) make other distribution arrangements with the Copyright Holder.
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
 
-5. You may charge a reasonable copying fee for any distribution of this
-Package.  You may charge any fee you choose for support of this Package. You
-may not charge a fee for this Package itself. However, you may distribute this
-Package in aggregate with other (possibly commercial) programs as part of a
-larger (possibly commercial) software distribution provided that you do not
-advertise this Package as a product of your own.
-
-6. The scripts and library files supplied as input to or produced as output
-from the programs of this Package do not automatically fall under the copyright
-of this Package, but belong to whomever generated them, and may be sold
-commercially, and may be aggregated with this Package.
+    a) place your modifications in the Public Domain or otherwise make them
+    Freely Available, such as by posting said modifications to Usenet or
+    an equivalent medium, or placing the modifications on a major archive
+    site such as uunet.uu.net, or by allowing the Copyright Holder to include
+    your modifications in the Standard Version of the Package.
+
+    b) use the modified Package only within your corporation or organization.
+
+    c) rename any non-standard executables so the names do not conflict
+    with standard executables, which must also be provided, and provide
+    a separate manual page for each non-standard executable that clearly
+    documents how it differs from the Standard Version.
 
-7. C or perl subroutines supplied by you and linked into this Package shall not
-be considered part of this Package.
+    d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+    a) distribute a Standard Version of the executables and library files,
+    together with instructions (in the manual page or equivalent) on where
+    to get the Standard Version.
+
+    b) accompany the distribution with the machine-readable source of
+    the Package with your modifications.
+
+    c) give non-standard executables non-standard names, and clearly
+    document the differences in manual pages (or equivalent), together
+    with instructions on where to get the Standard Version.
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this
+Package.  You may not charge a fee for this Package itself.  However,
+you may distribute this Package in aggregate with other (possibly
+commercial) programs as part of a larger (possibly commercial) software
+distribution provided that you do not advertise this Package as a
+product of your own.  You may embed this Package's interpreter within
+an executable of yours (by linking); this shall be construed as a mere
+form of aggregation, provided that the complete Standard Version of the
+interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package.  If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of this Package with a commercial distribution is always
+permitted provided that the use of this Package is embedded; that is,
+when no overt attempt is made to make this Package's interfaces visible
+to the end user of the commercial distribution.  Such use shall not be
+construed as a distribution of this Package.
 
-8. The name of the Copyright Holder may not be used to endorse or promote
+9. The name of the Copyright Holder may not be used to endorse or promote
 products derived from this software without specific prior written permission.
 
-9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
-The End
+                                The End
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/MANIFEST 
new/Test-Metrics-Any-0.02/MANIFEST
--- old/Test-Metrics-Any-0.01/MANIFEST  2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/MANIFEST  2026-09-30 17:55:53.000000000 +0200
@@ -1,3 +1,4 @@
+.editorconfig
 Build.PL
 Changes
 lib/Test/Metrics/Any.pm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/META.json 
new/Test-Metrics-Any-0.02/META.json
--- old/Test-Metrics-Any-0.01/META.json 2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/META.json 2026-09-30 17:55:53.000000000 +0200
@@ -4,7 +4,7 @@
       "Paul Evans <[email protected]>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "Module::Build version 0.4224",
+   "generated_by" : "Module::Build version 0.4234",
    "license" : [
       "perl_5"
    ],
@@ -23,19 +23,20 @@
          "requires" : {
             "Metrics::Any::Adapter" : "0",
             "Metrics::Any::Adapter::Test" : "0",
-            "Test::Builder::Module" : "0"
+            "Test::Builder::Module" : "0",
+            "perl" : "5.020"
          }
       },
       "test" : {
          "requires" : {
-            "Test::More" : "0.88"
+            "Test2::V0" : "0"
          }
       }
    },
    "provides" : {
       "Test::Metrics::Any" : {
          "file" : "lib/Test/Metrics/Any.pm",
-         "version" : "0.01"
+         "version" : "0.02"
       }
    },
    "release_status" : "stable",
@@ -44,6 +45,6 @@
          "http://dev.perl.org/licenses/";
       ]
    },
-   "version" : "0.01",
-   "x_serialization_backend" : "JSON::PP version 4.04"
+   "version" : "0.02",
+   "x_serialization_backend" : "JSON::PP version 4.16"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/META.yml 
new/Test-Metrics-Any-0.02/META.yml
--- old/Test-Metrics-Any-0.01/META.yml  2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/META.yml  2026-09-30 17:55:53.000000000 +0200
@@ -3,11 +3,11 @@
 author:
   - 'Paul Evans <[email protected]>'
 build_requires:
-  Test::More: '0.88'
+  Test2::V0: '0'
 configure_requires:
   Module::Build: '0.4004'
 dynamic_config: 1
-generated_by: 'Module::Build version 0.4224, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'Module::Build version 0.4234, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,12 +16,13 @@
 provides:
   Test::Metrics::Any:
     file: lib/Test/Metrics/Any.pm
-    version: '0.01'
+    version: '0.02'
 requires:
   Metrics::Any::Adapter: '0'
   Metrics::Any::Adapter::Test: '0'
   Test::Builder::Module: '0'
+  perl: '5.020'
 resources:
   license: http://dev.perl.org/licenses/
-version: '0.01'
-x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
+version: '0.02'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.020'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/README 
new/Test-Metrics-Any-0.02/README
--- old/Test-Metrics-Any-0.01/README    2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/README    2026-09-30 17:55:53.000000000 +0200
@@ -32,7 +32,7 @@
 
  is_metrics
 
-       is_metrics( \%metrics, $name )
+       is_metrics( \%metrics, $name );
 
     Asserts that the current value of every metric named in the given hash
     reference is set to the value provided. Values can either be given as
@@ -56,7 +56,7 @@
 
  is_metrics_from
 
-       is_metrics_from( $code, \%metrics, $name )
+       is_metrics_from( $code, \%metrics, $name );
 
     Asserts the value of metrics reported by running the given piece of
     code.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/lib/Test/Metrics/Any.pm 
new/Test-Metrics-Any-0.02/lib/Test/Metrics/Any.pm
--- old/Test-Metrics-Any-0.01/lib/Test/Metrics/Any.pm   2020-05-05 
14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/lib/Test/Metrics/Any.pm   2026-09-30 
17:55:53.000000000 +0200
@@ -1,19 +1,20 @@
 #  You may distribute under the terms of either the GNU General Public License
 #  or the Artistic License (the same terms as Perl itself)
 #
-#  (C) Paul Evans, 2020 -- [email protected]
+#  (C) Paul Evans, 2020-2026 -- [email protected]
 
-package Test::Metrics::Any;
+package Test::Metrics::Any 0.02;
 
-use strict;
+use v5.20;
 use warnings;
 use base qw( Test::Builder::Module );
 
+use feature qw( signatures );
+no warnings qw( experimental::signatures );
+
 use Metrics::Any::Adapter 'Test';
 use Metrics::Any::Adapter::Test; # Eager load
 
-our $VERSION = '0.01';
-
 our @EXPORT = qw(
    is_metrics
    is_metrics_from
@@ -25,6 +26,8 @@
 
 =head1 SYNOPSIS
 
+=for highlighter language=perl
+
    use Test::More;
    use Test::Metrics::Any;
 
@@ -57,7 +60,7 @@
 
 =head2 is_metrics
 
-   is_metrics( \%metrics, $name )
+   is_metrics( \%metrics, $name );
 
 Asserts that the current value of every metric named in the given hash
 reference is set to the value provided. Values can either be given as exact
@@ -80,9 +83,8 @@
 
 =cut
 
-sub is_metrics
+sub is_metrics ( $expect, $testname )
 {
-   my ( $expect, $testname ) = @_;
    my $tb = __PACKAGE__->builder;
 
    my %got = map { ( split m/\s*=\s*/, $_ )[0,1] } split m/\n/, 
Metrics::Any::Adapter::Test->metrics;
@@ -118,7 +120,7 @@
 
 =head2 is_metrics_from
 
-   is_metrics_from( $code, \%metrics, $name )
+   is_metrics_from( $code, \%metrics, $name );
 
 Asserts the value of metrics reported by running the given piece of code.
 
@@ -127,16 +129,20 @@
 
 =cut
 
-sub is_metrics_from(&@)
+# mixing prototype and signature is awkward before 5.28
 {
-   my ( $code, $expect, $testname ) = @_;
+   no feature 'signatures';
 
-   Metrics::Any::Adapter::Test->clear;
+   sub is_metrics_from(&@)
+   {
+      my ( $code, $expect, $testname ) = @_;
+      Metrics::Any::Adapter::Test->clear;
 
-   $code->();
+      $code->();
 
-   local $Test::Builder::Level = $Test::Builder::Level + 1;
-   return is_metrics( $expect, $testname );
+      local $Test::Builder::Level = $Test::Builder::Level + 1;
+      return is_metrics( $expect, $testname );
+   }
 }
 
 =head1 PREDICATES
@@ -151,11 +157,13 @@
 
 =cut
 
-sub predicate { return bless [ @_ ], "Test::Metrics::Any::_predicate" }
+sub predicate ( $message, $checker )
 {
-   package Test::Metrics::Any::_predicate;
-   sub check   { my $self = shift; $self->[1]->( shift ) }
-   sub message { my $self = shift; $self->[0] }
+   return bless [ $message, $checker ], "Test::Metrics::Any::_predicate";
+}
+package Test::Metrics::Any::_predicate {
+   sub check   ( $self, $value ) { $self->[1]->( $value ) }
+   sub message ( $self )         { $self->[0] }
 }
 
 =head2 positive
@@ -166,7 +174,10 @@
 
 =cut
 
-sub positive { predicate positive => sub { shift > 0 } }
+sub positive ()
+{
+   predicate positive => sub ( $value ) { $value > 0 };
+}
 
 =head2 at_least
 
@@ -176,7 +187,10 @@
 
 =cut
 
-sub at_least { my ($n) = @_; predicate "at least $n" => sub { shift >= $n } }
+sub at_least ( $n )
+{
+   predicate "at least $n" => sub ( $value ) { $value >= $n };
+}
 
 =head2 greater_than
 
@@ -186,7 +200,10 @@
 
 =cut
 
-sub greater_than { my ($n) = @_; predicate "greater than $n" => sub { shift > 
$n } }
+sub greater_than ( $n )
+{
+   predicate "greater than $n" => sub ( $value ) { $value > $n }
+}
 
 =head1 AUTHOR
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/t/00use.t 
new/Test-Metrics-Any-0.02/t/00use.t
--- old/Test-Metrics-Any-0.01/t/00use.t 2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/t/00use.t 2026-09-30 17:55:53.000000000 +0200
@@ -1,10 +1,11 @@
 #!/usr/bin/perl
 
-use strict;
+use v5.20;
 use warnings;
 
-use Test::More;
+use Test2::V0;
 
-use_ok( "Test::Metrics::Any" );
+require Test::Metrics::Any;
 
+pass( 'Modules loaded' );
 done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/t/01metrics.t 
new/Test-Metrics-Any-0.02/t/01metrics.t
--- old/Test-Metrics-Any-0.01/t/01metrics.t     2020-05-05 14:09:48.000000000 
+0200
+++ new/Test-Metrics-Any-0.02/t/01metrics.t     2026-09-30 17:55:53.000000000 
+0200
@@ -1,15 +1,27 @@
 #!/usr/bin/perl
 
-use strict;
+use v5.20;
 use warnings;
 
-use Test::More;
+use Test2::V0;
 use Test::Builder::Tester;
 
 use Test::Metrics::Any;
 
 use Metrics::Any '$metrics';
 
+# Detect the line number reporting behaviour of this version of perl, to
+# defend against failures introduced by Perl #24396
+my $CALLER_SEES_BLOCK_END;
+BEGIN {
+   sub probe_caller {
+      my $line = (caller)[2];
+      $CALLER_SEES_BLOCK_END = 1 if $line != shift;
+   }
+   probe_caller __LINE__,
+      sub { };
+}
+
 $metrics->make_counter( metric =>
    name => "the_metric_name",
 );
@@ -28,7 +40,7 @@
 # Missing
 {
    test_out( "not ok 1 - metric missing" );
-   test_fail( +4 );
+   test_fail( $CALLER_SEES_BLOCK_END ? +4 : +2 );
    test_err( "# Expected a metric called 'a_different_metric' but didn't find 
one" );
    is_metrics_from(
       sub { $metrics->inc_counter( metric => ); },
@@ -41,7 +53,7 @@
 # Wrong value
 {
    test_out( "not ok 1 - metric differing" );
-   test_fail( +4 );
+   test_fail( $CALLER_SEES_BLOCK_END ? +4 : +2 );
    test_err( "# Expected metric 'the_metric_name' to be 2 but got 4" );
    is_metrics_from(
       sub { $metrics->inc_counter_by( metric => 4 ); },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/t/02predicates.t 
new/Test-Metrics-Any-0.02/t/02predicates.t
--- old/Test-Metrics-Any-0.01/t/02predicates.t  2020-05-05 14:09:48.000000000 
+0200
+++ new/Test-Metrics-Any-0.02/t/02predicates.t  2026-09-30 17:55:53.000000000 
+0200
@@ -1,15 +1,27 @@
 #!/usr/bin/perl
 
-use strict;
+use v5.20;
 use warnings;
 
-use Test::More;
+use Test2::V0;
 use Test::Builder::Tester;
 
 use Test::Metrics::Any;
 
 use Metrics::Any '$metrics';
 
+# Detect the line number reporting behaviour of this version of perl, to
+# defend against failures introduced by Perl #24396
+my $CALLER_SEES_BLOCK_END;
+BEGIN {
+   sub probe_caller {
+      my $line = (caller)[2];
+      $CALLER_SEES_BLOCK_END = 1 if $line != shift;
+   }
+   probe_caller __LINE__,
+      sub { };
+}
+
 $metrics->make_counter( metric =>
    name => "the_metric_name",
 );
@@ -25,7 +37,7 @@
    test_test( "positive OK succeeds" );
 
    test_out( "not ok 1 - positive" );
-   test_fail( +4 );
+   test_fail( $CALLER_SEES_BLOCK_END ? +4 : +2 );
    test_err( "# Expected metric 'the_metric_name' to be positive but got 0" );
    is_metrics_from(
       sub { $metrics->inc_counter_by( metric => 0 ); },
@@ -46,7 +58,7 @@
    test_test( "at_least OK succeeds" );
 
    test_out( "not ok 1 - at_least" );
-   test_fail( +4 );
+   test_fail( $CALLER_SEES_BLOCK_END ? +4 : +2 );
    test_err( "# Expected metric 'the_metric_name' to be at least 3 but got 2" 
);
    is_metrics_from(
       sub { $metrics->inc_counter_by( metric => 2 ); },
@@ -67,7 +79,7 @@
    test_test( "greater_than OK succeeds" );
 
    test_out( "not ok 1 - greater_than" );
-   test_fail( +4 );
+   test_fail( $CALLER_SEES_BLOCK_END ? +4 : +2 );
    test_err( "# Expected metric 'the_metric_name' to be greater than 3 but got 
3" );
    is_metrics_from(
       sub { $metrics->inc_counter_by( metric => 3 ); },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Test-Metrics-Any-0.01/t/99pod.t 
new/Test-Metrics-Any-0.02/t/99pod.t
--- old/Test-Metrics-Any-0.01/t/99pod.t 2020-05-05 14:09:48.000000000 +0200
+++ new/Test-Metrics-Any-0.02/t/99pod.t 2026-09-30 17:55:53.000000000 +0200
@@ -1,9 +1,9 @@
 #!/usr/bin/perl
 
-use strict;
+use v5.20;
 use warnings;
 
-use Test::More;
+use Test2::V0;
 
 eval "use Test::Pod 1.00";
 plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;

++++++ _scmsync.obsinfo ++++++
mtime: 1790854912
commit: a488f46b5086a8d41a3e6d60af92f80dbdbe0ce31858e60b835339c0dae630eb
url: https://src.opensuse.org/perl/perl-Test-Metrics-Any
revision: a488f46b5086a8d41a3e6d60af92f80dbdbe0ce31858e60b835339c0dae630eb
projectscmsync: https://src.opensuse.org/perl/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-10-01 13:41:52.000000000 +0200
@@ -0,0 +1 @@
+.osc

Reply via email to