mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
update
This commit is contained in:
32
ketama/ketama_test.go
Normal file
32
ketama/ketama_test.go
Normal file
@ -0,0 +1,32 @@
|
||||
package ketama_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/charlienet/go-mixed/ketama"
|
||||
)
|
||||
|
||||
func TestNew(t *testing.T) {
|
||||
k := ketama.New()
|
||||
|
||||
t.Logf("%+v", k)
|
||||
k.Synchronize()
|
||||
|
||||
// k.Lock()
|
||||
|
||||
t.Logf("%+v", k)
|
||||
|
||||
t.Log(k.IsEmpty())
|
||||
t.Logf("%+v", k)
|
||||
t.Log(k.IsEmpty())
|
||||
t.Logf("%+v", k)
|
||||
k.Synchronize()
|
||||
|
||||
t.Log(k.IsEmpty())
|
||||
t.Logf("%+v", k)
|
||||
t.Log(k.IsEmpty())
|
||||
t.Logf("%+v", k)
|
||||
t.Log(k.IsEmpty())
|
||||
|
||||
t.Logf("%+v", k)
|
||||
}
|
Reference in New Issue
Block a user