pipewire/test
Barnabás Pőcze be18d052ad pipewire: properties: introduce pw_properties_move
Add

  pw_properties_move(dst, dst_key, src, src_key, fallback_value)

which can move a key-value pair from one property list into
another, optionally using the fallback value as value if
`src_key` cannot be found in `src`.

Add tests as well.

This commit also adds `pw_properties_rename()`, which can be used
to change the key in a dictionary, but that is not made part of
the public API yet.
2021-06-21 12:49:02 +02:00
..
meson.build test: unbreak FreeBSD 2021-06-21 09:28:02 +00:00
pwtest-compat.c test: add sigabbrev_np() for systems where it's not available 2021-06-10 15:13:57 +10:00
pwtest-implementation.h test: add errno check macros 2021-06-09 18:00:06 +10:00
pwtest.c test: unbreak FreeBSD 2021-06-21 09:28:02 +00:00
pwtest.h meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
test-array.c meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
test-context.c test: fix test 2021-06-17 11:14:20 +02:00
test-example.c meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
test-lib.c meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
test-logger.c test: add test for logger's ANSI escape sequences 2021-06-09 18:00:39 +10:00
test-properties.c pipewire: properties: introduce pw_properties_move 2021-06-21 12:49:02 +02:00
test-pwtest.c test: add sigabbrev_np() for systems where it's not available 2021-06-10 15:13:57 +10:00
test-spa-buffer.c test: convert two spa tests to pwtest 2021-06-09 18:00:39 +10:00
test-spa-json.c test: convert two spa tests to pwtest 2021-06-09 18:00:39 +10:00
test-spa-node.c test: move the spa tests to pwtest 2021-06-09 18:00:59 +10:00
test-spa-pod.c test: move the spa tests to pwtest 2021-06-09 18:00:59 +10:00
test-spa-utils.c test: shut up a compiler warning about an unused variable 2021-06-10 20:39:58 +10:00
test-support.c test: add a test for the logger truncation 2021-06-09 18:00:39 +10:00