]> git.proxmox.com Git - libgit2.git/blob - tests/odb/backend/backend_helpers.h
32d7a8bf03b986126fadc2764fbe2795be1f5280
[libgit2.git] / tests / odb / backend / backend_helpers.h
1 #include "git2/sys/odb_backend.h"
2
3 typedef struct {
4 const char *oid;
5 const char *content;
6 } fake_object;
7
8 typedef struct {
9 git_odb_backend parent;
10
11 int exists_calls;
12 int exists_prefix_calls;
13 int read_calls;
14 int read_header_calls;
15 int read_prefix_calls;
16 int refresh_calls;
17
18 const fake_object *objects;
19 } fake_backend;
20
21 int build_fake_backend(
22 git_odb_backend **out,
23 const fake_object *objects,
24 bool support_refresh);