/
View dependency graph
Depends on
- libexporter-lite-perl (libexporter-lite-perl)
- libjson-maybexs-perl (libjson-maybexs-perl)
- libmodule-build-tiny-perl (libmodule-build-tiny-perl)
- libtest-deep-perl (libtest-deep-perl)
- libtest-simple-perl (libtest-simple-perl)
- perl (perl)
- debhelper-compat
Used by
README (full)
NAME
Test::Deep::JSON - Compare JSON with Test::Deep
SYNOPSIS
use Test::Deep;
use Test::Deep::JSON;
cmp_deeply {
foo => 'bar',
payload => '{"a":1}',
}, {
foo => 'bar',
payload => json({ a => ignore() }),
};
DESCRIPTION
Test::Deep::JSON provides the json($expected) function to expect that
target can be parsed as a JSON string and matches (by cmp_deeply) with
$expected.
FUNCTIONS
-
json($expected)
Exported by default.
$expected can be anything that
Test::Deeprecognizes.This parses the data as a JSON string, and compares the parsed object and $expected by
Test::Deepfunctionality.Fails if the data cannot be parsed as a JSON string.
AUTHOR
motemen [email protected]
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| dir | xt/ |
| file | Build.PL |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | README.md |
| file | cpanfile |
| file | minil.toml |