Skip to content

Commit f2f14b1

Browse files
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>
1 parent ffc9b81 commit f2f14b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Flow.Launcher.Test/Plugins/UrlPluginTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ public void OneTimeSetup()
4949
[TestCase("HTTPS://EXAMPLE.COM")]
5050
[TestCase("EXAMPLE.COM")]
5151
[TestCase("LOCALHOST")]
52+
[TestCase("example.com/path")]
53+
[TestCase("example.com/path/to/resource")]
54+
[TestCase("http://example.com/path")]
55+
[TestCase("https://example.com/path?query=1")]
56+
[TestCase("192.168.1.1/path/to/resource")]
57+
[TestCase("localhost:8080/api/endpoint")]
58+
[TestCase("http://localhost/path")]
59+
[TestCase("[::1]/path")]
5260
public void WhenValidUrlThenIsUrlReturnsTrue(string url)
5361
{
5462
Assert.That(plugin.IsURL(url), Is.True);

0 commit comments

Comments
 (0)