mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Signed-off-by: yah01 <yang.cen@zilliz.com> Co-authored-by: Congqi Xia <congqi.xia@zilliz.com> Co-authored-by: aoiasd <zhicheng.yue@zilliz.com>
23 lines
421 B
Go
23 lines
421 B
Go
package deletebuffer
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/milvus-io/milvus/internal/storage"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestDeleteBufferItem(t *testing.T) {
|
|
item := &BufferItem{
|
|
PartitionID: 100,
|
|
DeleteData: storage.DeleteData{},
|
|
}
|
|
|
|
assert.Equal(t, int64(96), item.Size())
|
|
|
|
item.DeleteData.Pks = []storage.PrimaryKey{
|
|
storage.NewInt64PrimaryKey(10),
|
|
}
|
|
item.DeleteData.Tss = []uint64{2000}
|
|
}
|