mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-09 01:00:14 +03:00
Pull request: use testutil
Squashed commit of the following: commit 5345a14b3565f358c56a37500cafb35b7e397951 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Oct 21 21:13:06 2021 +0300 all: fix windows tests commit 8b9cdbe3e78f43339d21277f04e686bb154f6968 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Oct 21 20:23:55 2021 +0300 all: imp code commit 271fdbe74c29d8ea4b53d7f56d2a36612dfed7b3 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Oct 21 19:43:32 2021 +0300 all: imp testing commit e340f9d48679c57fc8eb579b8b78d4957be111c4 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Oct 21 18:53:51 2021 +0300 all: use testutil
This commit is contained in:
parent
7804d97743
commit
ea8950a80d
29 changed files with 211 additions and 249 deletions
internal/home
|
@ -13,7 +13,7 @@ func testParseOK(t *testing.T, ss ...string) options {
|
|||
t.Helper()
|
||||
|
||||
o, _, err := parse("", ss)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
|
||||
return o
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ func testParseErr(t *testing.T, descr string, ss ...string) {
|
|||
t.Helper()
|
||||
|
||||
_, _, err := parse("", ss)
|
||||
require.NotNilf(t, err, "expected an error because %s but no error returned", descr)
|
||||
require.Error(t, err)
|
||||
}
|
||||
|
||||
func testParseParamMissing(t *testing.T, param string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue