github.com/weaviate/weaviate@v1.24.6/test/acceptance/graphql_resolvers/objects_helper.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package test
    13  
    14  import (
    15  	"testing"
    16  
    17  	"github.com/weaviate/weaviate/entities/models"
    18  	"github.com/weaviate/weaviate/test/helper"
    19  )
    20  
    21  func createObjectClass(t *testing.T, class *models.Class) {
    22  	helper.CreateClass(t, class)
    23  }
    24  
    25  func createObject(t *testing.T, object *models.Object) {
    26  	helper.CreateObject(t, object)
    27  }
    28  
    29  func createObjectsBatch(t *testing.T, objects []*models.Object) {
    30  	helper.CreateObjectsBatch(t, objects)
    31  }
    32  
    33  func deleteObjectClass(t *testing.T, class string) {
    34  	helper.DeleteClass(t, class)
    35  }