Skip to content

Commit 8d2b311

Browse files
committed
tests: include function declarations
1 parent bfdc097 commit 8d2b311

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

tests/filter/custom_helpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "posix.h"
33
#include "filter.h"
44
#include "git2/sys/filter.h"
5+
#include "custom_helpers.h"
56

67
#define VERY_SECURE_ENCRYPTION(b) ((b) ^ 0xff)
78

tests/merge/merge_helpers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ int merge_test_reuc(git_index *index, const struct merge_reuc_entry expected[],
6565

6666
int merge_test_workdir(git_repository *repo, const struct merge_index_entry expected[], size_t expected_len);
6767

68+
void merge__dump_names(git_index *index);
69+
void merge__dump_index_entries(git_vector *index_entries);
70+
void merge__dump_reuc(git_index *index);
71+
6872
#endif

tests/refs/ref_helpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "common.h"
44
#include "util.h"
55
#include "path.h"
6+
#include "ref_helpers.h"
67

78
int reference_is_packed(git_reference *ref)
89
{

tests/refs/reflog/reflog_helpers.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
#include "repository.h"
44
#include "reflog.h"
5+
#include "reflog_helpers.h"
56

6-
static int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry)
7+
int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry)
78
{
89
char old_oid[GIT_OID_HEXSZ], new_oid[GIT_OID_HEXSZ];
910

tests/refs/reflog/reflog_helpers.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
size_t reflog_entrycount(git_repository *repo, const char *name);
22

33
#define cl_reflog_check_entry(repo, reflog, idx, old_spec, new_spec, email, message) \
4-
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __LINE__)
4+
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __FUNCTION__, __LINE__)
55

66
void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx,
7-
const char *old_spec, const char *new_spec,
8-
const char *email, const char *message, const char *file, int line);
7+
const char *old_spec, const char *new_spec,
8+
const char *email, const char *message,
9+
const char *file, const char *func, int line);
910

1011
void reflog_print(git_repository *repo, const char *reflog_name);
12+
int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry);

0 commit comments

Comments
 (0)