An open API service indexing awesome lists of open source software.

https://github.com/dnmfarrell/ddg-cheatsheet-check

Checks DuckDuckGo JSON cheatsheets for correctness
https://github.com/dnmfarrell/ddg-cheatsheet-check

Last synced: 8 months ago
JSON representation

Checks DuckDuckGo JSON cheatsheets for correctness

Awesome Lists containing this project

README

          

=pod

=head1 NAME

C - checks DuckDuckGo JSON cheatsheets for correctness

=head1 SYNOPSIS

$ ./cheatsheet_check /path/to/cheatsheet.json

# Subtest: file
ok 1 - filepath argument is present
ok 2 - file exists
ok 3 - filename is appropriate
ok 4 - file content can be read
ok 5 - content is valid JSON
1..5
ok 1 - file
# Subtest: headers
ok 1 - has id
ok 2 - has name
ok 3 - has description
1..3
ok 2 - headers
# Subtest: metadata
ok 1 - has metadata
ok 2 - has metadata sourceName
ok 3 - has metadata sourceUrl
ok 4 - sourceUrl is not undef
ok 5 - create File::Fetch object using sourceUrl
ok 6 - fetch sourceUrl successfully
1..6
ok 3 - metadata
# Subtest: sections
ok 1 - has section_order
ok 2 - has sections
1..2
ok 4 - sections
1..4

See my L for more background and information on the tool.

=head1 DEPENDENCIES

=over 4

=item * L

=item * Perl modules L and L

=back

=head1 VERSION

0.02

=head1 AUTHOR

David Farrell, (C) 2015

=head1 LICENSE

FreeBSD, see LICENSE

=cut