pipewire/test
Pauli Virtanen 3775e4e624 spa: json: check object key-value pair parity during parsing
Check each object key is associated with value.  Disallow object or
array valued keys.

Add flag tracking whether the parser is at global top-level or not, as
there we may either be in object context or in a single-value context.

Save depth=0 array flag bit in state, so that spa_json_next preserves
its complete state across calls. The higher-depth flag bits can be in
temporary stack as they are not needed across calls.
2024-03-25 20:49:25 +02:00
..
data test: add "strict" JSON tests 2024-03-25 20:49:25 +02:00
meson.build meson: fix compilation when spa-plugins is disabled 2024-02-06 11:50:54 +01:00
pwtest-compat.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pwtest-implementation.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pwtest.c test: add "strict" JSON tests 2024-03-25 20:49:25 +02:00
pwtest.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-array.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-client.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-config.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-context.c test: fix test 2023-07-19 11:35:03 +02:00
test-example.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-functional.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-lib.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-logger.c test: fix test error message check 2024-01-04 10:02:55 +00:00
test-loop.c hooks: add and use _fast callback function 2023-05-06 00:27:12 +02:00
test-map.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-properties.c spa: json: more parsing errors & add spa_json_get_error 2024-03-25 20:49:25 +02:00
test-pwtest.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-buffer.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-json.c spa: json: check object key-value pair parity during parsing 2024-03-25 20:49:25 +02:00
test-spa-log.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-node.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-pod.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-utils.c Port: Add tag param 2023-08-29 14:22:13 +02:00
test-support.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-utils.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00