testsuit

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpWeaviate

func CleanUpWeaviate(t *testing.T, client *weaviate.Client)

CleanUpWeaviate removes the schema and thereby all data

func CreateTestClient

func CreateTestClient() *weaviate.Client

CreateTestClient running on local host 8080

func CreateTestSchemaAndData

func CreateTestSchemaAndData(t *testing.T, client *weaviate.Client)

CreateTestSchemaAndData with a few pizzas and soups

func CreateWeaviateTestSchemaFood

func CreateWeaviateTestSchemaFood(t *testing.T, client *weaviate.Client)

CreateWeaviateTestSchemaFood creates a class for each semantic type (Pizza and Soup) and adds some primitive properties (name and description)

func CreateWeaviateTestSchemaFoodWithReferenceProperty

func CreateWeaviateTestSchemaFoodWithReferenceProperty(t *testing.T, client *weaviate.Client)

CreateWeaviateTestSchemaFoodWithReferenceProperty create the testing schema with a reference field otherFoods on both classes

func CreateWeaviateTestSchemaWithVectorizorlessClass added in v2.4.1

func CreateWeaviateTestSchemaWithVectorizorlessClass(t *testing.T, client *weaviate.Client)

func ParseReferenceResponseToStruct

func ParseReferenceResponseToStruct(t *testing.T, reference interface{}) models.MultipleRef

ParseReferenceResponseToStruct from the interface typed property schema returned by the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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