|
KiCad PCB EDA Suite
|
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]" |
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.
| BOOST_AUTO_TEST_CASE | ( | CollectDiffDeltas_NullDiffIsNoOp | ) |
Definition at line 232 of file test_git_compare_handler.cpp.
References BOOST_CHECK_EQUAL(), and KIGIT::CollectDiffDeltas().
| BOOST_AUTO_TEST_CASE | ( | CollectDiffDeltas_WalksEveryDelta | ) |
Definition at line 240 of file test_git_compare_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KIGIT::CollectDiffDeltas(), path, and KIGIT::ResolveRefToTree().
| 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 | ( | CompareRefs_ReportsExpectedChanges | ) |
Definition at line 274 of file test_git_compare_handler.cpp.
References KIGIT::ADDED, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KIGIT::CompareRefs(), KIGIT::MODIFIED, and KIGIT::REMOVED.
| 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 | ( | ResolveRefToTree_Valid | ) |
Definition at line 208 of file test_git_compare_handler.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), and KIGIT::ResolveRefToTree().
|
static |
Definition at line 44 of file test_git_compare_handler.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GIT_COMPARE_FIXTURE::commitAll(), and GIT_COMPARE_FIXTURE::initRepo().
|
static |
Definition at line 43 of file test_git_compare_handler.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), GIT_COMPARE_FIXTURE::commitAll(), and GIT_COMPARE_FIXTURE::initRepo().