MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / test_separators

Function test_separators

libavutil/tests/dict.c:56–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void test_separators(const AVDictionary *m, const char pair, const char val)
57{
58 AVDictionary *dict = NULL;
59 char pairs[] = {pair , '\0'};
60 char vals[] = {val, '\0'};
61
62 char *buffer = NULL;
63 int ret;
64
65 av_dict_copy(&dict, m, 0);
66 print_dict(dict);
67 av_dict_get_string(dict, &buffer, val, pair);
68 printf("%s\n", buffer);
69 av_dict_free(&dict);
70 ret = av_dict_parse_string(&dict, buffer, vals, pairs, 0);
71 printf("ret %d\n", ret);
72 av_freep(&buffer);
73 print_dict(dict);
74 av_dict_free(&dict);
75}
76
77int main(void)
78{

Callers 1

mainFunction · 0.85

Calls 6

av_dict_copyFunction · 0.85
print_dictFunction · 0.85
av_dict_get_stringFunction · 0.85
av_dict_freeFunction · 0.85
av_dict_parse_stringFunction · 0.85
av_freepFunction · 0.85

Tested by

no test coverage detected