rename go test funcs for gtimer

This commit is contained in:
John
2019-01-12 22:47:07 +08:00
parent 432c16c89f
commit 0a422e9a89
3 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@ func New() *gtimer.Timer {
return gtimer.New(10, 10*time.Millisecond)
}
func TestWheel_Add_Close(t *testing.T) {
func TestTimer_Add_Close(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -50,7 +50,7 @@ func TestWheel_Add_Close(t *testing.T) {
})
}
func TestWheel_Singleton(t *testing.T) {
func TestTimer_Singleton(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -66,7 +66,7 @@ func TestWheel_Singleton(t *testing.T) {
})
}
func TestWheel_Once(t *testing.T) {
func TestTimer_Once(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -88,7 +88,7 @@ func TestWheel_Once(t *testing.T) {
})
}
func TestWheel_DelayAdd(t *testing.T) {
func TestTimer_DelayAdd(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -102,7 +102,7 @@ func TestWheel_DelayAdd(t *testing.T) {
})
}
func TestWheel_DelayAdd_Singleton(t *testing.T) {
func TestTimer_DelayAdd_Singleton(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -118,7 +118,7 @@ func TestWheel_DelayAdd_Singleton(t *testing.T) {
})
}
func TestWheel_DelayAdd_Once(t *testing.T) {
func TestTimer_DelayAdd_Once(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)
@ -136,7 +136,7 @@ func TestWheel_DelayAdd_Once(t *testing.T) {
})
}
func TestWheel_ExitJob(t *testing.T) {
func TestTimer_ExitJob(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)

View File

@ -15,7 +15,7 @@ import (
"time"
)
func TestWheel_Entry_Operation(t *testing.T) {
func TestTimer_Entry_Operation(t *testing.T) {
wheel := New()
array := garray.New(0, 0)
entry := wheel.Add(time.Second, func() {
@ -28,7 +28,7 @@ func TestWheel_Entry_Operation(t *testing.T) {
gtest.Assert(array.Len(), 1)
}
func TestWheel_Entry_Singleton(t *testing.T) {
func TestTimer_Entry_Singleton(t *testing.T) {
wheel := New()
array := garray.New(0, 0)
entry := wheel.Add(time.Second, func() {
@ -43,7 +43,7 @@ func TestWheel_Entry_Singleton(t *testing.T) {
gtest.Assert(array.Len(), 1)
}
func TestWheel_Entry_Once(t *testing.T) {
func TestTimer_Entry_Once(t *testing.T) {
wheel := New()
array := garray.New(0, 0)
entry := wheel.Add(time.Second, func() {

View File

@ -15,7 +15,7 @@ import (
"time"
)
func TestWheel_Times(t *testing.T) {
func TestTimer_Times(t *testing.T) {
gtest.Case(t, func() {
wheel := New()
array := garray.New(0, 0)