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

Function SetUpEditorForTesting

libs/editor/editor_tests_support/helpers.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace tests_support
10{
11void SetUpEditorForTesting(std::unique_ptr<osm::Editor::Delegate> delegate)
12{
13 auto & editor = osm::Editor::Instance();
14 editor.SetDelegate(std::move(delegate));
15 editor.SetStorageForTesting(std::make_unique<editor::InMemoryStorage>());
16 editor.ClearAllLocalEdits();
17 editor.ResetNotes();
18}
19
20void TearDownEditorForTesting()
21{

Callers 2

TestWithCustomMwmsMethod · 0.85
EditorTestMethod · 0.85

Calls 4

SetDelegateMethod · 0.80
SetStorageForTestingMethod · 0.80
ClearAllLocalEditsMethod · 0.80
ResetNotesMethod · 0.80

Tested by 2

TestWithCustomMwmsMethod · 0.68
EditorTestMethod · 0.68