testutils

package
v0.0.0-...-0250440 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstanceName

func CreateInstanceName(ctx context.Context, t *testing.T, client *ent.Client, name string) *ent.InstanceName

CreateInstanceName creates a instance name in the testing database.

func SetupTestDB

func SetupTestDB(t testing.TB, dbProvider *embedded.DatabaseProvider) database.Client

SetupTestDB creates a new database used for testing.

func StartCreateInvocation

func StartCreateInvocation(client *ent.Client, instanceName *ent.InstanceName) *ent.BazelInvocationCreate

StartCreateInvocation startes a BazelInvocationCreate query with required variables to avoid having to repeat them every time. They can be overridden by specifying them agin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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