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...

Public Member Functions

 VCS_TEST_FIXTURE ()
 
 ~VCS_TEST_FIXTURE ()
 
bool repoReady () const
 

Private Member Functions

bool initRepo ()
 

Private Attributes

LIBGIT_BACKENDm_backend
 
wxString m_originalDir
 
wxString m_tempDir
 
bool m_repoReady
 

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 56 of file test_text_eval_parser_vcs.cpp.

Constructor & Destructor Documentation

◆ VCS_TEST_FIXTURE()

VCS_TEST_FIXTURE::VCS_TEST_FIXTURE ( )
inline

◆ ~VCS_TEST_FIXTURE()

VCS_TEST_FIXTURE::~VCS_TEST_FIXTURE ( )
inline

Definition at line 77 of file test_text_eval_parser_vcs.cpp.

References m_backend, m_originalDir, m_tempDir, and SetGitBackend().

Member Function Documentation

◆ initRepo()

bool VCS_TEST_FIXTURE::initRepo ( )
inlineprivate

◆ repoReady()

bool VCS_TEST_FIXTURE::repoReady ( ) const
inline

Definition at line 89 of file test_text_eval_parser_vcs.cpp.

References m_repoReady.

Member Data Documentation

◆ m_backend

LIBGIT_BACKEND* VCS_TEST_FIXTURE::m_backend
private

Definition at line 169 of file test_text_eval_parser_vcs.cpp.

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

◆ m_originalDir

wxString VCS_TEST_FIXTURE::m_originalDir
private

Definition at line 170 of file test_text_eval_parser_vcs.cpp.

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

◆ m_repoReady

bool VCS_TEST_FIXTURE::m_repoReady
private

Definition at line 172 of file test_text_eval_parser_vcs.cpp.

Referenced by repoReady(), and VCS_TEST_FIXTURE().

◆ m_tempDir

wxString VCS_TEST_FIXTURE::m_tempDir
private

Definition at line 171 of file test_text_eval_parser_vcs.cpp.

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


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