Name : perl-Test-JSON-Entails
| |
Version : 0.2
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:40:44
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-JSON-Entails-0.2-lp154.1.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Test whether one JSON or Perl structure entails/subsumes another
|
Description :
Sometimes you want to compare JSON objects not for exact equivalence but for whether one structure subsumes the other. The other way round, one structure can be _entailed_ by another. For instance
{ \"foo\": 1, \"bar\": [ \"x\" ] }
is entailed by any of the following structures:
{ \"foo\": 1, \"bar\": [ \"x\" ], \"doz\": 2 } # additional hash element { \"foo\": 1, \"bar\": [ \"x\", \"y\" ], \"doz\": 2 } # additional array element
This module exports the testing method \'entails\' and its alias \'subsumes\' to check such entailments. You can pass, JSON strings with encoded JSON objects, Perl hash references, and blessed hash references.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |