diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-16 23:29:22 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-22 22:07:45 -0500 |
| commit | 3344fddc97bbdea9c1b6ebb6f7fb6dbd70b41dfb (patch) | |
| tree | fd6368a72944571c51627b40c592e7d58e0036e1 /tests/submodule/submodule_helpers.h | |
| parent | 91ba089663f5efc3bd4ba14a5099372cf5ce57a6 (diff) | |
| download | libgit2-3344fddc97bbdea9c1b6ebb6f7fb6dbd70b41dfb.tar.gz | |
refactor: `tests` is now `tests/libgit2`
Like we want to separate libgit2 and utility source code, we want to
separate libgit2 and utility tests. Start by moving all the tests into
libgit2.
Diffstat (limited to 'tests/submodule/submodule_helpers.h')
| -rw-r--r-- | tests/submodule/submodule_helpers.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/submodule/submodule_helpers.h b/tests/submodule/submodule_helpers.h deleted file mode 100644 index 3c3f062ae..000000000 --- a/tests/submodule/submodule_helpers.h +++ /dev/null @@ -1,25 +0,0 @@ -extern void rewrite_gitmodules(const char *workdir); - -/* these will automatically set a cleanup callback */ -extern git_repository *setup_fixture_submodules(void); -extern git_repository *setup_fixture_submod2(void); -extern git_repository *setup_fixture_submod3(void); -extern git_repository *setup_fixture_submodule_simple(void); -extern git_repository *setup_fixture_super(void); -extern git_repository *setup_fixture_submodule_with_path(void); - -extern unsigned int get_submodule_status(git_repository *, const char *); - -extern void assert__submodule_exists(git_repository *, const char *, - const char *, const char *, const char *, int); - -#define assert_submodule_exists(repo,name) \ - assert__submodule_exists(repo, name, "git_submodule_lookup(" #name ") failed", __FILE__, __func__, __LINE__) - -extern void refute__submodule_exists(git_repository *, const char *, - int err, const char *, const char *, const char *, int); - -#define refute_submodule_exists(repo,name,code) \ - refute__submodule_exists(repo, name, code, "expected git_submodule_lookup(" #name ") to fail with error " #code, __FILE__, __func__, __LINE__) - -extern void dump_submodules(git_repository *repo); |
