From f2f14b13979557e4fc374642a63c7779e1728b2e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 13:23:43 +0800 Subject: [PATCH] Add URL path test coverage to UrlPluginTest (#4307) * Initial plan * Add test cases for URLs with paths Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> --- Flow.Launcher.Test/Plugins/UrlPluginTest.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Flow.Launcher.Test/Plugins/UrlPluginTest.cs b/Flow.Launcher.Test/Plugins/UrlPluginTest.cs index 9b8953361..f0d919bbe 100644 --- a/Flow.Launcher.Test/Plugins/UrlPluginTest.cs +++ b/Flow.Launcher.Test/Plugins/UrlPluginTest.cs @@ -49,6 +49,14 @@ namespace Flow.Launcher.Test.Plugins [TestCase("HTTPS://EXAMPLE.COM")] [TestCase("EXAMPLE.COM")] [TestCase("LOCALHOST")] + [TestCase("example.com/path")] + [TestCase("example.com/path/to/resource")] + [TestCase("http://example.com/path")] + [TestCase("https://example.com/path?query=1")] + [TestCase("192.168.1.1/path/to/resource")] + [TestCase("localhost:8080/api/endpoint")] + [TestCase("http://localhost/path")] + [TestCase("[::1]/path")] public void WhenValidUrlThenIsUrlReturnsTrue(string url) { Assert.That(plugin.IsURL(url), Is.True);