]>
Commit | Line | Data |
---|---|---|
2add34d0 PS |
1 | #include "git2/sys/odb_backend.h" |
2 | ||
3 | typedef struct { | |
6e010bb1 PS |
4 | const char *oid; |
5 | const char *content; | |
6 | } fake_object; | |
2add34d0 | 7 | |
6e010bb1 PS |
8 | typedef struct { |
9 | git_odb_backend parent; | |
2add34d0 PS |
10 | |
11 | int exists_calls; | |
b2e53f36 | 12 | int exists_prefix_calls; |
2add34d0 PS |
13 | int read_calls; |
14 | int read_header_calls; | |
15 | int read_prefix_calls; | |
e579e0f7 | 16 | int refresh_calls; |
6e010bb1 PS |
17 | |
18 | const fake_object *objects; | |
2add34d0 PS |
19 | } fake_backend; |
20 | ||
21 | int build_fake_backend( | |
22 | git_odb_backend **out, | |
e579e0f7 MB |
23 | const fake_object *objects, |
24 | bool support_refresh); |