Writes the content of the given virtual file. ## Panics If the db isn't using the [`InMemorySystem`].
(
&mut self,
path: impl AsRef<SystemVirtualPath>,
content: impl AsRef<[u8]>,
)
| 328 | /// ## Panics |
| 329 | /// If the db isn't using the [`InMemorySystem`]. |
| 330 | fn write_virtual_file( |
| 331 | &mut self, |
| 332 | path: impl AsRef<SystemVirtualPath>, |
| 333 | content: impl AsRef<[u8]>, |
| 334 | ) { |
| 335 | let path = path.as_ref(); |
| 336 | self.test_system() |
| 337 | .memory_file_system() |
| 338 | .write_virtual_file(path, content); |
| 339 | } |
| 340 | |
| 341 | /// Uses the given system instead of the testing system. |
| 342 | /// |
nothing calls this directly
no test coverage detected