MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / open_virtual_document

Method open_virtual_document

test/MockEditorInterface.cpp:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500MockEditorInterface::~MockEditorInterface() = default;
501
502void MockEditorInterface::open_virtual_document(
503 const std::wstring &path,
504 const std::wstring &data) {
505 MockedDocumentInfo info;
506 info.path = path;
507 info.set_data(data);
508 info.codepage = EditorCodepage::utf8;
509 m_documents[m_target_view].push_back(std::move(info));
510 m_active_view = m_target_view;
511 m_active_document_index[m_target_view] =
512 static_cast<int>(m_documents[m_target_view].size() - 1);
513}
514
515void MockEditorInterface::set_active_document_text(
516 const std::wstring &text) {

Callers 3

EncodingTests.cppFile · 0.80

Calls 2

set_dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected