|
KiCad PCB EDA Suite
|
Give each test a backend and a temporary directory. More...
#include <git_test_fixture.h>
Public Member Functions | |
| GIT_TEST_FIXTURE () | |
| ~GIT_TEST_FIXTURE () | |
| Loading a project in a GUI app moves the working directory into it, so leave before the temp dir goes. | |
| const wxString & | TempPath () const |
| LIBGIT_BACKEND * | Backend () const |
Static Private Member Functions | |
| static wxString | toWxString (const std::filesystem::path &aPath) |
Private Attributes | |
| SCOPED_GIT_BACKEND | m_backend |
| SCOPED_TEMP_DIR | m_tempDir |
| SCOPED_TEMP_DIR | m_configDir |
| SCOPED_GIT_CONFIG_SEARCH_PATH | m_configSearchPath |
| wxString | m_originalCwd |
| wxString | m_tempPath |
Give each test a backend and a temporary directory.
Tests own their repository handles. Only repository config is read, so results do not depend on the user's global or system Git config.
Definition at line 85 of file git_test_fixture.h.
|
inline |
Definition at line 88 of file git_test_fixture.h.
References m_configDir, m_configSearchPath, m_originalCwd, m_tempDir, m_tempPath, and toWxString().
|
inline |
Loading a project in a GUI app moves the working directory into it, so leave before the temp dir goes.
Definition at line 99 of file git_test_fixture.h.
References m_originalCwd.
|
inline |
Definition at line 102 of file git_test_fixture.h.
References m_backend.
|
inline |
Definition at line 101 of file git_test_fixture.h.
References m_tempPath.
Referenced by GIT_BACKEND_FIXTURE::GIT_BACKEND_FIXTURE(), GIT_COMPARE_FIXTURE::GIT_COMPARE_FIXTURE(), GIT_IGNORE_FIXTURE::GIT_IGNORE_FIXTURE(), GIT_BACKEND_FIXTURE::tempBase(), VCS_TEST_FIXTURE::tempDir(), and VCS_TEST_FIXTURE::VCS_TEST_FIXTURE().
|
inlinestaticprivate |
Definition at line 105 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
private |
Definition at line 115 of file git_test_fixture.h.
Referenced by Backend().
|
private |
Definition at line 117 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
private |
Definition at line 118 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
private |
Definition at line 119 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE(), and ~GIT_TEST_FIXTURE().
|
private |
Definition at line 116 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
private |
Definition at line 120 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE(), and TempPath().