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

Regression tests for the shared KIGIT git helpers ResolveRefToTree / CollectDiffDeltas and the CompareRefs façade built on top of them. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <git/git_compare_handler.h>
#include <git/kicad_git_common.h>
#include <git/kicad_git_memory.h>
#include <git2.h>
#include <fstream>
#include <map>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/utils.h>

Go to the source code of this file.

Classes

struct  GIT_COMPARE_FIXTURE
 Build a temp working repo with two commits. More...
 

Functions

 BOOST_AUTO_TEST_CASE (ResolveRefToTree_Valid)
 
 BOOST_AUTO_TEST_CASE (ResolveRefToTree_Invalid)
 
 BOOST_AUTO_TEST_CASE (CollectDiffDeltas_NullDiffIsNoOp)
 
 BOOST_AUTO_TEST_CASE (CollectDiffDeltas_WalksEveryDelta)
 
 BOOST_AUTO_TEST_CASE (CompareRefs_ReportsExpectedChanges)
 
 BOOST_AUTO_TEST_CASE (CompareRefs_InvalidRefReturnsEmpty)
 

Variables

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

Detailed Description

Regression tests for the shared KIGIT git helpers ResolveRefToTree / CollectDiffDeltas and the CompareRefs façade built on top of them.

Definition in file test_git_compare_handler.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( CollectDiffDeltas_NullDiffIsNoOp )

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( CollectDiffDeltas_WalksEveryDelta )

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( CompareRefs_InvalidRefReturnsEmpty )

Definition at line 293 of file test_git_compare_handler.cpp.

References BOOST_REQUIRE(), KIGIT::CompareRefs(), and empty().

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( CompareRefs_ReportsExpectedChanges )

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( ResolveRefToTree_Invalid )

Definition at line 223 of file test_git_compare_handler.cpp.

References BOOST_REQUIRE(), and KIGIT::ResolveRefToTree().

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( ResolveRefToTree_Valid )

Variable Documentation

◆ TEST_AUTHOR_EMAIL

◆ TEST_AUTHOR_NAME