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
- Host: GitHub
- URL: https://github.com/dnmfarrell/ddg-cheatsheet-check
- Owner: dnmfarrell
- License: other
- Created: 2015-08-26T18:06:29.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T10:15:31.000Z (almost 11 years ago)
- Last Synced: 2025-01-16T16:49:56.364Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- License: LICENSE
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