Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/status/status_helpers.h')
-rw-r--r--tests/status/status_helpers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/status/status_helpers.h b/tests/status/status_helpers.h
index f1f009e02..242076cc9 100644
--- a/tests/status/status_helpers.h
+++ b/tests/status/status_helpers.h
@@ -8,9 +8,19 @@ typedef struct {
const unsigned int* expected_statuses;
const char** expected_paths;
int expected_entry_count;
+ const char *file;
+ int line;
bool debug;
} status_entry_counts;
+#define status_counts_init(counts, paths, statuses) do { \
+ memset(&(counts), 0, sizeof(counts)); \
+ (counts).expected_statuses = (statuses); \
+ (counts).expected_paths = (paths); \
+ (counts).file = __FILE__; \
+ (counts).line = __LINE__; \
+ } while (0)
+
/* cb_status__normal takes payload of "status_entry_counts *" */
extern int cb_status__normal(