testhelpers

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Registers datastore entries for tests that call service.DatastoreSpec(). Import this package from any test package that needs a complete spec. Keep entries in sync with each plugin's DatastoreEntries() implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgentTemplateArtifactTypeIDForDBTest added in v0.3.11

func GetAgentTemplateArtifactTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetAgentTemplateArtifactTypeIDForDBTest retrieves the AgentTemplateArtifact type ID for testing

func GetAgentTypeIDForDBTest added in v0.3.11

func GetAgentTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetAgentTypeIDForDBTest retrieves the Agent type ID for testing

func GetCatalogMetricsArtifactTypeIDForDBTest

func GetCatalogMetricsArtifactTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetCatalogMetricsArtifactTypeIDForDBTest retrieves the CatalogMetricsArtifact type ID for testing

func GetCatalogModelArtifactTypeIDForDBTest

func GetCatalogModelArtifactTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetCatalogModelArtifactTypeIDForDBTest retrieves the CatalogModelArtifact type ID for testing

func GetCatalogModelTypeIDForDBTest

func GetCatalogModelTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetCatalogModelTypeIDForDBTest retrieves the CatalogModel type ID for testing

func GetCatalogSourceTypeIDForDBTest

func GetCatalogSourceTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetCatalogSourceTypeIDForDBTest retrieves the CatalogSource type ID for testing

func GetMCPServerToolTypeIDForDBTest

func GetMCPServerToolTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetMCPServerToolTypeIDForDBTest retrieves the MCPServerTool type ID for testing

func GetMCPServerTypeIDForDBTest

func GetMCPServerTypeIDForDBTest(t *testing.T, db *gorm.DB) int32

GetMCPServerTypeIDForDBTest retrieves the MCPServer type ID for testing

func MustDatastoreSpec added in v0.3.10

func MustDatastoreSpec(t *testing.T) *datastore.Spec

MustDatastoreSpec calls service.DatastoreSpec and fails the test on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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