KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>
#include <commit.h>
#include <undo_redo_container.h>
#include <eda_item.h>
Go to the source code of this file.
Classes | |
class | TEST_EDA_ITEM |
class | TEST_COMMIT |
Functions | |
BOOST_AUTO_TEST_CASE (StageAndStatus) | |
BOOST_AUTO_TEST_CASE (StageContainers) | |
BOOST_AUTO_TEST_CASE (StagePickedItemsList) | |
BOOST_AUTO_TEST_CASE (UnstageRemovesNewItem) | |
BOOST_AUTO_TEST_CASE | ( | StageAndStatus | ) |
Definition at line 50 of file test_commit.cpp.
References COMMIT::Add(), BOOST_CHECK_EQUAL(), CHT_ADD, CHT_MODIFY, CHT_REMOVE, TEST_EDA_ITEM::Clone(), copy, COMMIT::GetStatus(), COMMIT::Modified(), COMMIT::Modify(), PCB_T, and COMMIT::Remove().
BOOST_AUTO_TEST_CASE | ( | StageContainers | ) |
Definition at line 69 of file test_commit.cpp.
References BOOST_CHECK_EQUAL(), CHT_ADD, COMMIT::GetStatus(), PCB_T, and COMMIT::Stage().
BOOST_AUTO_TEST_CASE | ( | StagePickedItemsList | ) |
Definition at line 82 of file test_commit.cpp.
References BOOST_CHECK_EQUAL(), CHANGED, CHT_ADD, CHT_MODIFY, TEST_EDA_ITEM::Clone(), COMMIT::GetStatus(), NEWITEM, PCB_T, PICKED_ITEMS_LIST::PushItem(), ITEM_PICKER::SetLink(), and COMMIT::Stage().
BOOST_AUTO_TEST_CASE | ( | UnstageRemovesNewItem | ) |
Definition at line 103 of file test_commit.cpp.
References COMMIT::Add(), COMMIT::Empty(), IS_NEW, PCB_T, EDA_ITEM::SetFlags(), and COMMIT::Unstage().