Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix linter warnings #440

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cache/barrier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func TestBarrierZeroValue(t *testing.T) {
t.Run("Lock", func(t *testing.T) {
t.Run("Lock", func(*testing.T) {
var b Barrier[int]
b.Lock(0)
b.Unlock(0)
Expand Down
4 changes: 2 additions & 2 deletions internal/cache/cow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ func TestCowZeroValue(t *testing.T) {
t.Fatal("Empty Cow contains value")
}
})
t.Run("DeleteAll", func(t *testing.T) {
t.Run("DeleteAll", func(*testing.T) {
var cow Cow[int, string]
cow.DeleteAll() // Check whether this panics for an empty Cow
})
t.Run("DeleteFunc", func(t *testing.T) {
t.Run("DeleteFunc", func(*testing.T) {
var cow Cow[int, string]
cow.DeleteFunc(func(_ int, _ string) bool { return true }) // Check whether this panics for an empty Cow
})
Expand Down
Loading