diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-05-22 20:14:47 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-07-22 15:08:50 -0400 |
| commit | 96dc1ffdc864c883e632989d75c32f602b107c83 (patch) | |
| tree | edb335a6e31aff83374f6fdc55880b8f1a2e0625 /tests/attr | |
| parent | 5ee5048841b514e80695a2ec5d19cb1ad34eeffa (diff) | |
| download | libgit2-96dc1ffdc864c883e632989d75c32f602b107c83.tar.gz | |
attr: the attr source is now a struct
We may want to extend the attribute source; use a structure instead of
an enum.
Diffstat (limited to 'tests/attr')
| -rw-r--r-- | tests/attr/lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/attr/lookup.c b/tests/attr/lookup.c index 29a66b001..bfb2e872f 100644 --- a/tests/attr/lookup.c +++ b/tests/attr/lookup.c @@ -236,6 +236,7 @@ void test_attr_lookup__check_attr_examples(void) void test_attr_lookup__from_buffer(void) { git_attr_file *file; + git_attr_file_source source = {0}; struct attr_expected cases[] = { { "abc", "foo", EXPECT_TRUE, NULL }, @@ -250,7 +251,7 @@ void test_attr_lookup__from_buffer(void) { NULL, NULL, 0, NULL } }; - cl_git_pass(git_attr_file__new(&file, NULL, 0)); + cl_git_pass(git_attr_file__new(&file, NULL, &source)); cl_git_pass(git_attr_file__parse_buffer(NULL, file, "a* foo\nabc bar\n* baz", true)); |
