testutils

package
v0.0.0-...-572c485 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateArrayOfBoolArray

func GenerateArrayOfBoolArray(numRows int) []*schemapb.ScalarField

func GenerateArrayOfDoubleArray

func GenerateArrayOfDoubleArray(numRows int) []*schemapb.ScalarField

func GenerateArrayOfFloatArray

func GenerateArrayOfFloatArray(numRows int) []*schemapb.ScalarField

func GenerateArrayOfIntArray

func GenerateArrayOfIntArray(numRows int) []*schemapb.ScalarField

func GenerateArrayOfLongArray

func GenerateArrayOfLongArray(numRows int) []*schemapb.ScalarField

func GenerateArrayOfStringArray

func GenerateArrayOfStringArray(numRows int) []*schemapb.ScalarField

func GenerateBFloat16Vectors

func GenerateBFloat16Vectors(numRows, dim int) []byte

func GenerateBFloat16VectorsWithInvalidData

func GenerateBFloat16VectorsWithInvalidData(numRows, dim int) []byte

func GenerateBinaryVectors

func GenerateBinaryVectors(numRows, dim int) []byte

func GenerateBoolArray

func GenerateBoolArray(numRows int) []bool

generate data

func GenerateBytesArray

func GenerateBytesArray(numRows int) [][]byte

func GenerateFloat16Vectors

func GenerateFloat16Vectors(numRows, dim int) []byte

func GenerateFloat16VectorsWithInvalidData

func GenerateFloat16VectorsWithInvalidData(numRows, dim int) []byte

func GenerateFloat32Array

func GenerateFloat32Array(numRows int) []float32

func GenerateFloat64Array

func GenerateFloat64Array(numRows int) []float64

func GenerateFloatVectors

func GenerateFloatVectors(numRows, dim int) []float32

func GenerateHashKeys

func GenerateHashKeys(numRows int) []uint32

func GenerateInt16Array

func GenerateInt16Array(numRows int) []int16

func GenerateInt32Array

func GenerateInt32Array(numRows int) []int32

func GenerateInt64Array

func GenerateInt64Array(numRows int) []int64

func GenerateInt8Array

func GenerateInt8Array(numRows int) []int8

func GenerateJSONArray

func GenerateJSONArray(numRows int) [][]byte

func GenerateScalarFieldData

func GenerateScalarFieldData(dType schemapb.DataType, fieldName string, numRows int) *schemapb.FieldData

func GenerateScalarFieldDataWithID

func GenerateScalarFieldDataWithID(dType schemapb.DataType, fieldName string, fieldID int64, numRows int) *schemapb.FieldData

func GenerateScalarFieldDataWithValue

func GenerateScalarFieldDataWithValue(dType schemapb.DataType, fieldName string, fieldID int64, fieldValue interface{}) *schemapb.FieldData

func GenerateSparseFloatVectors

func GenerateSparseFloatVectors(numRows int) *schemapb.SparseFloatArray

func GenerateSparseFloatVectorsData

func GenerateSparseFloatVectorsData(numRows int) ([][]byte, int64)

func GenerateStringArray

func GenerateStringArray(numRows int) []string

func GenerateUint64Array

func GenerateUint64Array(numRows int) []uint64

func GenerateVarCharArray

func GenerateVarCharArray(numRows int, maxLen int) []string

func GenerateVectorFieldData

func GenerateVectorFieldData(dType schemapb.DataType, fieldName string, numRows int, dim int) *schemapb.FieldData

func GenerateVectorFieldDataWithID

func GenerateVectorFieldDataWithID(dType schemapb.DataType, fieldName string, fieldID int64, numRows int, dim int) *schemapb.FieldData

func GenerateVectorFieldDataWithValue

func GenerateVectorFieldDataWithValue(dType schemapb.DataType, fieldName string, fieldID int64, fieldValue interface{}, dim int) *schemapb.FieldData

func NewArrayFieldData

func NewArrayFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewArrayFieldDataWithValue

func NewArrayFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewBFloat16VectorFieldData

func NewBFloat16VectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData

func NewBFloat16VectorFieldDataWithValue

func NewBFloat16VectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData

func NewBinaryVectorFieldData

func NewBinaryVectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData

func NewBinaryVectorFieldDataWithValue

func NewBinaryVectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData

func NewBoolFieldData

func NewBoolFieldData(fieldName string, numRows int) *schemapb.FieldData

generate FieldData

func NewBoolFieldDataWithValue

func NewBoolFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewDoubleFieldData

func NewDoubleFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewDoubleFieldDataWithValue

func NewDoubleFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewFloat16VectorFieldData

func NewFloat16VectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData

func NewFloat16VectorFieldDataWithValue

func NewFloat16VectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData

func NewFloatFieldData

func NewFloatFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewFloatFieldDataWithValue

func NewFloatFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewFloatVectorFieldData

func NewFloatVectorFieldData(fieldName string, numRows, dim int) *schemapb.FieldData

func NewFloatVectorFieldDataWithValue

func NewFloatVectorFieldDataWithValue(fieldName string, fieldValue interface{}, dim int) *schemapb.FieldData

func NewInt16FieldData

func NewInt16FieldData(fieldName string, numRows int) *schemapb.FieldData

func NewInt32FieldData

func NewInt32FieldData(fieldName string, numRows int) *schemapb.FieldData

func NewInt32FieldDataWithValue

func NewInt32FieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewInt64FieldData

func NewInt64FieldData(fieldName string, numRows int) *schemapb.FieldData

func NewInt64FieldDataWithValue

func NewInt64FieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewInt8FieldData

func NewInt8FieldData(fieldName string, numRows int) *schemapb.FieldData

func NewJSONFieldData

func NewJSONFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewJSONFieldDataWithValue

func NewJSONFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

func NewSparseFloatVectorFieldData

func NewSparseFloatVectorFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewStringFieldData

func NewStringFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewVarCharFieldData

func NewVarCharFieldData(fieldName string, numRows int) *schemapb.FieldData

func NewVarCharFieldDataWithValue

func NewVarCharFieldDataWithValue(fieldName string, fieldValue interface{}) *schemapb.FieldData

Types

type EmbedEtcdUtil

type EmbedEtcdUtil struct {
	// contains filtered or unexported fields
}

func (*EmbedEtcdUtil) SetupEtcd

func (util *EmbedEtcdUtil) SetupEtcd() ([]string, error)

func (*EmbedEtcdUtil) TearDownEmbedEtcd

func (util *EmbedEtcdUtil) TearDownEmbedEtcd()

type PromMetricsSuite

type PromMetricsSuite struct {
	suite.Suite
}

PromMetricsSuite is a util suite wrapper providing prometheus metrics assertion functions.

func (*PromMetricsSuite) CollectCntEqual

func (suite *PromMetricsSuite) CollectCntEqual(c prometheus.Collector, expect int, msgAndArgs ...any) bool

func (*PromMetricsSuite) MetricsEqual

func (suite *PromMetricsSuite) MetricsEqual(c prometheus.Collector, expect float64, msgAndArgs ...any) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL