mirror of https://github.com/milvus-io/milvus.git
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}
|
|
}
|