Checks DuckDuckGo JSON cheatsheets for correctness
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.pod
cheatsheet_check

README.pod

NAME

cheatsheet_check - checks DuckDuckGo JSON cheatsheets for correctness

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 article for more background and information on the tool.

DEPENDENCIES

VERSION

0.02

AUTHOR

David Farrell, (C) 2015

LICENSE

FreeBSD, see LICENSE