removed unused code
This commit is contained in:
@@ -161,8 +161,8 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with one-to-ma
|
||||
departments.emplace_back(new department{ 2, "Invoice", {}});
|
||||
|
||||
for (auto &&a: departments) {
|
||||
auto res = ses.insert(a.release());
|
||||
REQUIRE(res.is_ok());
|
||||
auto res = ses.insert(a.release());
|
||||
REQUIRE(res.is_ok());
|
||||
}
|
||||
|
||||
auto find_result = ses.find<department>();
|
||||
@@ -170,8 +170,8 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with one-to-ma
|
||||
auto all_departments = find_result.release();
|
||||
std::vector<object_ptr<department>> departments_repo;
|
||||
for (auto it = all_departments.begin(); it != all_departments.end(); ++it) {
|
||||
std::cout << "department: " << it->name << " (employees: " << it->employees.size() << ")\n";
|
||||
departments_repo.emplace_back(it.release());
|
||||
std::cout << "department: " << it->name << " (employees: " << it->employees.size() << ")\n";
|
||||
departments_repo.emplace_back(it.release());
|
||||
}
|
||||
REQUIRE(departments_repo.size() == 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user