void () { assertEquals("", VirtualFileManager.extractPath("")); assertEquals("file:/", VirtualFileManager.extractPath("file:/")); assertEquals("", VirtualFileManager.extractPath("file://")); assertEquals("/some/path/file.rb:24", VirtualFileManager.extractPath("file:///some/path/file.rb:24")); assertEquals("./some/path/file.rb:24", VirtualFileManager.extractPath("file://./some/path/file.rb:24")); assertEquals("", VirtualFileManager.extractPath("ruby_qn://")); assertEquals("A::B.method", VirtualFileManager.extractPath("ruby_qn://A::B.method")); }