Skip to content

Commit

Permalink
client: imp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed May 8, 2024
1 parent 7e6d171 commit 1b1a21b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions internal/client/index_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package client
import (
"net"
"net/netip"
"slices"
"strings"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -123,21 +121,6 @@ func TestClientIndex_Find(t *testing.T) {
_, ok := ci.Find(cliIPNone)
assert.False(t, ok)
})

t.Run("sorted_range", func(t *testing.T) {
slices.SortFunc(clients, func(a, b *Persistent) (n int) {
return strings.Compare(a.Name, b.Name)
})

got := []*Persistent{}
ci.RangeByName(func(c *Persistent) (cont bool) {
got = append(got, c)

return true
})

assert.Equal(t, clients, got)
})
}

func TestClientIndex_Clashes(t *testing.T) {
Expand Down

0 comments on commit 1b1a21b

Please sign in to comment.