Unverified Commit 450f5da7 authored by Seungbae.yu's avatar Seungbae.yu Committed by GitHub

accounts: increase parseURL test coverage (#25033)

accounts/url: add test logic what check null string to parseURL()
parent 403624a4
...@@ -32,9 +32,10 @@ func TestURLParsing(t *testing.T) { ...@@ -32,9 +32,10 @@ func TestURLParsing(t *testing.T) {
t.Errorf("expected: %v, got: %v", "ethereum.org", url.Path) t.Errorf("expected: %v, got: %v", "ethereum.org", url.Path)
} }
_, err = parseURL("ethereum.org") for _, u := range []string{"ethereum.org", ""} {
if err == nil { if _, err = parseURL(u); err == nil {
t.Error("expected err, got: nil") t.Errorf("input %v, expected err, got: nil", u)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment