1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 /* Disable this transformation for the test-string-util.c */
4 position p : script:python() { p[0].file != "src/test/test-string-util.c" };
8 - strv_length@p(s) == 0
11 - strv_length@p(s) <= 0
14 - strv_length@p(s) > 0
17 - strv_length@p(s) != 0
32 - strlen_ptr@p(s) == 0
35 - strlen_ptr@p(s) <= 0
41 - strlen_ptr@p(s) != 0
45 /* Disable this transformation for the hashmap.h, set.h, test-hashmap.c, test-hashmap-plain.c */
46 position p : script:python() {
47 p[0].file != "src/basic/hashmap.h" and
48 p[0].file != "src/basic/set.h" and
49 p[0].file != "src/test/test-hashmap.c" and
50 p[0].file != "src/test/test-hashmap-plain.c"
55 - hashmap_size@p(s) == 0
58 - hashmap_size@p(s) <= 0
61 - hashmap_size@p(s) > 0
64 - hashmap_size@p(s) != 0
67 - ordered_hashmap_size@p(s) == 0
68 + ordered_hashmap_isempty(s)
70 - ordered_hashmap_size@p(s) <= 0
71 + ordered_hashmap_isempty(s)
73 - ordered_hashmap_size@p(s) > 0
74 + !ordered_hashmap_isempty(s)
76 - ordered_hashmap_size@p(s) != 0
77 + !ordered_hashmap_isempty(s)
91 - ordered_set_size@p(s) == 0
92 + ordered_set_isempty(s)
94 - ordered_set_size@p(s) <= 0
95 + ordered_set_isempty(s)
97 - ordered_set_size@p(s) > 0
98 + !ordered_set_isempty(s)
100 - ordered_set_size@p(s) != 0
101 + !ordered_set_isempty(s)
139 - table_get_rows(s) <= 1
142 - table_get_rows(s) > 1