mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 17:20:22 +00:00

The fake backend used by the test suite `odb::backend::nonrefreshing` is useful to have some low-level tests for the ODB layer. As such, we move the implementation into its own `backend_helpers` module.
19 lines
320 B
C
19 lines
320 B
C
#include "git2/sys/odb_backend.h"
|
|
|
|
typedef struct {
|
|
git_odb_backend parent;
|
|
|
|
git_error_code error_code;
|
|
git_oid oid;
|
|
|
|
int exists_calls;
|
|
int read_calls;
|
|
int read_header_calls;
|
|
int read_prefix_calls;
|
|
} fake_backend;
|
|
|
|
int build_fake_backend(
|
|
git_odb_backend **out,
|
|
git_error_code error_code,
|
|
const git_oid *oid);
|