丰富单元测试

This commit is contained in:
liwei committed 2020-08-11 22:29:36 +08:00
1 parent dd47b52952
commit df2dbca475
6 files changed
+345 -113

No files matched your search

+3 -3
View File
@@ -1,11 +1,11 @@
package model
import (
common2 "github.com/monkeyWie/gopeed/download/common"
"github.com/monkeyWie/gopeed/download/common"
)
type Chunk struct {
Status common2.Status
Status common.Status
Begin int64
End int64
Downloaded int64
@@ -13,7 +13,7 @@ type Chunk struct {
func NewChunk(begin int64, end int64) *Chunk {
return &Chunk{
Status: common2.DownloadStatusReady,
Status: common.DownloadStatusReady,
Begin: begin,
End: end,
}