| 500 | MockEditorInterface::~MockEditorInterface() = default; |
| 501 | |
| 502 | void 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 | |
| 515 | void MockEditorInterface::set_active_document_text( |
| 516 | const std::wstring &text) { |
no test coverage detected