Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 987 Bytes

README.md

File metadata and controls

66 lines (43 loc) · 987 Bytes

json-query

This is part of an assignment for the Object Oriented C++ course in Uni.

This project is more or less a clone of jql but written in C++ instead of Rust.

It's a cli query tool for json files. See jql for examples.

Building

The sources are built with C++20 using the Makefile.

make

Running

make jsonquery
./jsonquery --help

Tests

make check

or

make jsonquery_test
./jsonquery_test

To execute tests with coverage use:

./coverage.sh

This will generate a coverage report using the clang/llvm tools in test-coverage/index.html.

There is also a fuzzing test:

make clean
make FUZZ=1 jsonquery_fuzz
./jsonquery_fuzz

Benchmarks

(incomplete)

Dependencies

  • boost (tested with version 1.72)

For testing:

  • Catch2 (header only, included in test/ directory)