mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
chore: update golangci-lint config and fix lint issues (#542)
* chore: update golangci-lint config and fix lint issues
This commit is contained in:
@@ -21,7 +21,7 @@ func mkFile(t *testing.T, parts ...string) {
|
||||
|
||||
func TestListBrowsers(t *testing.T) {
|
||||
list := ListBrowsers()
|
||||
assert.True(t, len(list) > 0)
|
||||
assert.NotEmpty(t, list)
|
||||
assert.True(t, sort.StringsAreSorted(list))
|
||||
}
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ func TestAcquireFiles(t *testing.T) {
|
||||
assert.Len(t, paths, len(cats))
|
||||
for _, p := range paths {
|
||||
_, err := os.Stat(p)
|
||||
assert.NoError(t, err, "acquired file should exist")
|
||||
require.NoError(t, err, "acquired file should exist")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,5 +40,5 @@ func TestExtractHistories_NullFields(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Len(t, got, 1)
|
||||
assert.Equal(t, "https://null.test", got[0].URL)
|
||||
assert.Equal(t, "", got[0].Title)
|
||||
assert.Empty(t, got[0].Title)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user