Repo Added
|
Files
6
|
Badge
README BADGES
|
push
github
Ensure array_type has front() method + fix array_type on jsoncpp (#361) * Use operator[] instead of front to support jsoncpp Replace the `front()` with `[0]` as front is not supported by jsoncpp on array types. Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Revert "Use operator[] instead of front to support jsoncpp" This reverts commit dfa7d29da. * Implement `front()` in jsoncpp array_type Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Check if array_type has a front() method Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Add `front()` to jsoncons array_type * Remove non-const overloads of front() Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Fix check for front() in array_type Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * Use std::decay Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> * fix example to print array value * expose base class ctors * update as_array traits helper * fixup linter --------- Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
1285 of 1353 relevant lines covered (94.97%)
255.52 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|---|---|---|---|---|---|---|
66.67 | include/jwt-cpp/traits/nlohmann-json/traits.h | 76 | 33 | 22 | 11 | 18.0 | |
77.27 | ...wt-cpp/traits/open-source-parsers-jsoncpp/traits.h | 135 + 2 | 66 | 51 | 15 | 16.0 | |
96.52 | include/jwt-cpp/jwt.h | 4216 + 2 | 1091 | 1053 | 38 | 35.0 | |
96.77 | include/jwt-cpp/base.h | 351 | 124 | 120 | 4 | 2545.0 | |
100.0 | include/jwt-cpp/traits/kazuho-picojson/defaults.h | 77 | 10 | 10 | 0 | 28.0 | |
100.0 | include/jwt-cpp/traits/kazuho-picojson/traits.h | 75 | 29 | 29 | 0 | 48.0 |