Fake Filesystem Loader Backend
class FakeFilesystemLoaderBackend(files: Map<String, String>) : ResourceLoader.Backend
Content copied to clipboard
A fake FilesystemLoaderBackend that loads file contents from an in-memory map. The map can be populated by adding to the ForFakeFiles map.
newMapBinder<String, String>(ForFakeFiles::class).addBinding("/etc/foo.txt").toInstance("hello!")Content copied to clipboard