NAME Test::Sah - Test data against Sah schema VERSION This document describes version 0.020 of Test::Sah (from Perl distribution Test-Sah), released on 2020-03-01. SYNOPSIS use Test::More; use Test::Sah; # exports is_valid() and is_invalid() is_valid ({}, [hash => keys=>{a=>"int", b=>"str"}]); # ok is_invalid([], [array => {min_len=>1}]); # ok done_testing; DESCRIPTION This module is a proof of concept. It provides "is_valid()" and "is_invalid()" to test data structure against Sah schema. FUNCTIONS All these functions are exported by default. is_valid($data, $schema[, $msg]) => BOOL Test that $data validates to $schema. is_invalid($data, $schema[, $msg]) => BOOL Test that $data does not validate to $schema. HOMEPAGE Please visit the project's homepage at <https://metacpan.org/release/Test-Sah>. SOURCE Source repository is at <https://github.com/perlancar/perl-Test-Sah>. BUGS Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Sah> When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. SEE ALSO Test::Sah::Schema to test Sah schema modules. Data::Sah Sah AUTHOR perlancar <perlancar@cpan.org> COPYRIGHT AND LICENSE This software is copyright (c) 2020, 2012 by perlancar@cpan.org. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.