mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-23 13:52:26 +08:00
fix: fix some go report issue
This commit is contained in:
@@ -24,7 +24,7 @@ func TestWatcher(t *testing.T) {
|
|||||||
assert.Equal(false, w.excuting)
|
assert.Equal(false, w.excuting)
|
||||||
|
|
||||||
w.Reset()
|
w.Reset()
|
||||||
|
|
||||||
assert.Equal(int64(0), w.startTime)
|
assert.Equal(int64(0), w.startTime)
|
||||||
assert.Equal(int64(0), w.stopTime)
|
assert.Equal(int64(0), w.stopTime)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const (
|
|||||||
compareGreater
|
compareGreater
|
||||||
)
|
)
|
||||||
|
|
||||||
// Assert is a simple implementation of assertion, only for internal useage
|
// Assert is a simple implementation of assertion, only for internal usage
|
||||||
type Assert struct {
|
type Assert struct {
|
||||||
T *testing.T
|
T *testing.T
|
||||||
CaseName string
|
CaseName string
|
||||||
@@ -154,9 +154,8 @@ func compare(x, y interface{}) int {
|
|||||||
default:
|
default:
|
||||||
if reflect.DeepEqual(x, y) {
|
if reflect.DeepEqual(x, y) {
|
||||||
return compareEqual
|
return compareEqual
|
||||||
} else {
|
|
||||||
return compareNotEqual
|
|
||||||
}
|
}
|
||||||
|
return compareNotEqual
|
||||||
}
|
}
|
||||||
|
|
||||||
return compareNotEqual
|
return compareNotEqual
|
||||||
|
|||||||
Reference in New Issue
Block a user