Skip to content

Commit

Permalink
Merge pull request #954
Browse files Browse the repository at this point in the history
testing: port json-test to wunit framework and extend it
  • Loading branch information
cfconrad committed Feb 14, 2023
2 parents fe8c60b + 0b87c38 commit b5e5d6e
Show file tree
Hide file tree
Showing 3 changed files with 567 additions and 107 deletions.
2 changes: 2 additions & 0 deletions src/json.h
Expand Up @@ -81,6 +81,8 @@ extern ni_bool_t ni_json_array_set(ni_json_t *, unsigned int, ni_json_t *);
extern ni_bool_t ni_json_array_insert(ni_json_t *, unsigned int, ni_json_t *);
extern ni_bool_t ni_json_array_append(ni_json_t *, ni_json_t *);
extern unsigned int ni_json_array_entries(ni_json_t *);
extern ni_json_t * ni_json_array_remove_at(ni_json_t *, unsigned int);
extern ni_bool_t ni_json_array_delete_at(ni_json_t *, unsigned int);

extern ni_json_pair_t * ni_json_pair_new(const char *name, ni_json_t *value);
extern ni_json_pair_t * ni_json_pair_ref(ni_json_pair_t *);
Expand Down
3 changes: 2 additions & 1 deletion testing/Makefile.am
Expand Up @@ -49,6 +49,7 @@ EXTRA_DIST = ibft xpath \
TESTS = socket-mock-test \
bitmask-test \
bitmap-test \
nbft-test.sh
nbft-test.sh \
json-test

# vim: ai

0 comments on commit b5e5d6e

Please sign in to comment.