mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
81e70ee6c9
Signed-off-by: xige-16 <xi.ge@zilliz.com>
24 lines
375 B
Go
24 lines
375 B
Go
package mock
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
var C = Collection{
|
|
ID: uint64(11111),
|
|
Name: "test-collection",
|
|
CreateTime: time.Now(),
|
|
SegmentIDs: []uint64{uint64(10111)},
|
|
PartitionTags: []string{"default"},
|
|
}
|
|
|
|
func TestCollection2JSON(t *testing.T) {
|
|
res, err := Collection2JSON(C)
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
fmt.Println(res)
|
|
}
|