mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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>
This commit is contained in:
parent
ffc9b81d7b
commit
f2f14b1397
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue