blob: 23049400934378963df5c1b94de99727d0c510ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "clar_libgit2.h"
#include "userdiff.h"
static git_regexp regex;
void test_diff_userdiff__cleanup(void)
{
git_regexp_dispose(®ex);
}
void test_diff_userdiff__compile_userdiff_regexps(void)
{
size_t idx;
for (idx = 0; idx < ARRAY_SIZE(builtin_defs); ++idx) {
git_diff_driver_definition ddef = builtin_defs[idx];
cl_git_pass(git_regexp_compile(®ex, ddef.fns, ddef.flags));
git_regexp_dispose(®ex);
cl_git_pass(git_regexp_compile(®ex, ddef.words, 0));
git_regexp_dispose(®ex);
}
}
|