KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_kigit_ignore.cpp File Reference

Tests for the KIGIT ignore helpers, which write the project's .gitignore and report what git would do with a rule for a path. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <git/git_status_handler.h>
#include <git/kicad_git_common.h>
#include <git/kicad_git_memory.h>
#include <git/kigit_ignore.h>
#include <git2.h>
#include <map>
#include <qa_utils/git_test_fixture.h>
#include <wx/ffile.h>
#include <wx/filename.h>
#include <wx/textfile.h>

Go to the source code of this file.

Classes

struct  GIT_IGNORE_FIXTURE
 A repository holding one committed file, with the project at its root. More...
 
struct  GIT_IGNORE_SUBDIR_FIXTURE
 The project is a folder inside a larger repository, where rules have to be anchored to the project rather than the repository root. More...
 

Functions

 BOOST_AUTO_TEST_CASE (RuleNamesOnlyThePathPicked)
 
 BOOST_AUTO_TEST_CASE (IgnoredFileLeavesTheCommitList)
 
 BOOST_AUTO_TEST_CASE (IgnoredFolderLeavesTheCommitList)
 
 BOOST_AUTO_TEST_CASE (TrackedPathReportsThatARuleWouldNotApply)
 
 BOOST_AUTO_TEST_CASE (AddingKeepsTheFileTheUserHad)
 
 BOOST_AUTO_TEST_CASE (AddingAfterAnUnterminatedLastLine)
 
 BOOST_AUTO_TEST_CASE (RemovingTakesOnlyTheRuleNamed)
 
 BOOST_AUTO_TEST_CASE (RulesApplyToTheProjectOnly)
 

Variables

static const char * TEST_AUTHOR_NAME = "Test Author"
 
static const char * TEST_AUTHOR_EMAIL = "[email protected]"
 

Detailed Description

Tests for the KIGIT ignore helpers, which write the project's .gitignore and report what git would do with a rule for a path.

Definition in file test_kigit_ignore.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( AddingAfterAnUnterminatedLastLine )

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( AddingKeepsTheFileTheUserHad )

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( IgnoredFileLeavesTheCommitList )

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( IgnoredFolderLeavesTheCommitList )

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( RemovingTakesOnlyTheRuleNamed )

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( RuleNamesOnlyThePathPicked )

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( RulesApplyToTheProjectOnly )

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( TrackedPathReportsThatARuleWouldNotApply )

Variable Documentation

◆ TEST_AUTHOR_EMAIL

const char* TEST_AUTHOR_EMAIL = "[email protected]"
static

Definition at line 46 of file test_kigit_ignore.cpp.

Referenced by GIT_IGNORE_FIXTURE::GIT_IGNORE_FIXTURE().

◆ TEST_AUTHOR_NAME

const char* TEST_AUTHOR_NAME = "Test Author"
static

Definition at line 45 of file test_kigit_ignore.cpp.

Referenced by GIT_IGNORE_FIXTURE::GIT_IGNORE_FIXTURE().