KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VCS_TEST_FIXTURE Struct Reference

Fixture that creates a temporary git repo with one committed file. More...

Inheritance diagram for VCS_TEST_FIXTURE:
KI_TEST::GIT_TEST_FIXTURE

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VCS_TEST_FIXTURE()

Member Function Documentation

◆ Backend()

LIBGIT_BACKEND * KI_TEST::GIT_TEST_FIXTURE::Backend ( ) const
inlineinherited

Definition at line 102 of file git_test_fixture.h.

References m_backend.

◆ tempDir()

const wxString & VCS_TEST_FIXTURE::tempDir ( ) const
inline

◆ TempPath()

◆ toWxString()

static wxString KI_TEST::GIT_TEST_FIXTURE::toWxString ( const std::filesystem::path & aPath)
inlinestaticprivateinherited

Definition at line 105 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

Member Data Documentation

◆ m_backend

SCOPED_GIT_BACKEND KI_TEST::GIT_TEST_FIXTURE::m_backend
privateinherited

Definition at line 115 of file git_test_fixture.h.

Referenced by Backend().

◆ m_configDir

SCOPED_TEMP_DIR KI_TEST::GIT_TEST_FIXTURE::m_configDir
privateinherited

Definition at line 117 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_configSearchPath

SCOPED_GIT_CONFIG_SEARCH_PATH KI_TEST::GIT_TEST_FIXTURE::m_configSearchPath
privateinherited

Definition at line 118 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_context

TEXT_EVAL_VCS::CONTEXT_PATH_SCOPE VCS_TEST_FIXTURE::m_context { wxString() }
private

Definition at line 68 of file test_text_eval_parser_vcs.cpp.

◆ m_originalCwd

wxString KI_TEST::GIT_TEST_FIXTURE::m_originalCwd
privateinherited

Definition at line 119 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE(), and ~GIT_TEST_FIXTURE().

◆ m_tempDir

SCOPED_TEMP_DIR KI_TEST::GIT_TEST_FIXTURE::m_tempDir
privateinherited

Definition at line 116 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE().

◆ m_tempPath

wxString KI_TEST::GIT_TEST_FIXTURE::m_tempPath
privateinherited

Definition at line 120 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE(), and TempPath().


The documentation for this struct was generated from the following file: