|
KiCad PCB EDA Suite
|
Fixture that creates a temporary git repo with one committed file. More...
Public Member Functions | |
| VCS_TEST_FIXTURE () | |
| const wxString & | tempDir () const |
| const wxString & | TempPath () const |
| LIBGIT_BACKEND * | Backend () const |
Static Private Member Functions | |
| static wxString | toWxString (const std::filesystem::path &aPath) |
Private Attributes | |
| TEXT_EVAL_VCS::CONTEXT_PATH_SCOPE | m_context { wxString() } |
| 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 |
Fixture that creates a temporary git repo with one committed file.
This gives every VCS function a known, deterministic environment.
Definition at line 53 of file test_text_eval_parser_vcs.cpp.
|
inline |
Definition at line 55 of file test_text_eval_parser_vcs.cpp.
References BOOST_REQUIRE(), KI_TEST::CommitGitFile(), KI_TEST::InitGitRepository(), KI_TEST::GIT_TEST_FIXTURE::TempPath(), TEST_AUTHOR_EMAIL, TEST_AUTHOR_NAME, TEST_COMMIT_MSG, and KI_TEST::WriteGitFile().
|
inlineinherited |
Definition at line 102 of file git_test_fixture.h.
References m_backend.
|
inline |
Definition at line 64 of file test_text_eval_parser_vcs.cpp.
References KI_TEST::GIT_TEST_FIXTURE::TempPath().
|
inlineinherited |
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().
|
inlinestaticprivateinherited |
Definition at line 105 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
privateinherited |
Definition at line 115 of file git_test_fixture.h.
Referenced by Backend().
|
privateinherited |
Definition at line 117 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
privateinherited |
Definition at line 118 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
private |
Definition at line 68 of file test_text_eval_parser_vcs.cpp.
|
privateinherited |
Definition at line 119 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE(), and ~GIT_TEST_FIXTURE().
|
privateinherited |
Definition at line 116 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE().
|
privateinherited |
Definition at line 120 of file git_test_fixture.h.
Referenced by GIT_TEST_FIXTURE(), and TempPath().