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 ()
 
 ~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() }
 
wxString m_originalDir
 
SCOPED_GIT_BACKEND m_backend
 
SCOPED_TEMP_DIR m_tempDir
 
SCOPED_TEMP_DIR m_configDir
 
SCOPED_GIT_CONFIG_SEARCH_PATH m_configSearchPath
 
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()

◆ ~VCS_TEST_FIXTURE()

VCS_TEST_FIXTURE::~VCS_TEST_FIXTURE ( )
inline

Definition at line 65 of file test_text_eval_parser_vcs.cpp.

References m_originalDir.

Member Function Documentation

◆ Backend()

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

Definition at line 97 of file git_test_fixture.h.

References m_backend.

◆ tempDir()

const wxString & VCS_TEST_FIXTURE::tempDir ( ) const
inline

◆ TempPath()

const wxString & KI_TEST::GIT_TEST_FIXTURE::TempPath ( ) const
inlineinherited

◆ toWxString()

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

Definition at line 100 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 110 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 112 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 113 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 71 of file test_text_eval_parser_vcs.cpp.

◆ m_originalDir

wxString VCS_TEST_FIXTURE::m_originalDir
private

Definition at line 72 of file test_text_eval_parser_vcs.cpp.

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

◆ m_tempDir

SCOPED_TEMP_DIR KI_TEST::GIT_TEST_FIXTURE::m_tempDir
privateinherited

Definition at line 111 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 114 of file git_test_fixture.h.

Referenced by GIT_TEST_FIXTURE(), and TempPath().


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