MCPcopy Create free account
hub / github.com/comaps/comaps / ClearAllLocalEditsTest

Method ClearAllLocalEditsTest

libs/editor/editor_tests/osm_editor_test.cpp:470–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void EditorTest::ClearAllLocalEditsTest()
471{
472 auto & editor = osm::Editor::Instance();
473
474 auto const mwmId = ConstructTestMwm([](TestMwmBuilder & builder)
475 {
476 TestCafe cafe(m2::PointD(1.0, 1.0), "London Cafe", "en");
477 builder.Add(cafe);
478
479 builder.Add(TestPOI(m2::PointD(10, 10), "Corner Post", "default"));
480 });
481
482 osm::EditableMapObject emo;
483 CreateCafeAtPoint({3.0, 3.0}, mwmId, emo);
484
485 TEST(!editor.m_features.Get()->empty(), ());
486 editor.ClearAllLocalEdits();
487 TEST(editor.m_features.Get()->empty(), ());
488}
489
490void EditorTest::GetFeaturesByStatusTest()
491{

Callers

nothing calls this directly

Calls 7

TestPOIClass · 0.85
CreateCafeAtPointFunction · 0.85
TESTFunction · 0.85
ClearAllLocalEditsMethod · 0.80
AddMethod · 0.45
emptyMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected