# Functions
ChannelReceiveWithTimeout returns the next message from channel chan or panics if it timesout before.
IfErrPanic conditionally panics on err with msg.
MockPermissions creates a context from the given context with mocks for permission-api methods.
ParseDBURI parses the kind of query language from TESTDB_URI env var and initializes DBContainer as required.
SetupDB sets up in-memory nats server/conn, database and ent client to interact with db.
TeardownDB used for clean up test setup.
# Variables
DBContainer to use through entire test suite.
EntClient to use as ent client.
EventsConn exported if needed for subscribers.
NATSConn exported if needed for subscribers.
# Structs
LoadBalancerBuilder is a loadbalancer-like struct for use in generating a loadbalancer using the ent client.
OriginBuilder is an origin-like struct for use in generating an origin using the ent client.
PoolBuilder is a pool-like struct for use in generating a pool using the ent client.
PortBuilder is a port-like struct for use in generating a port using the ent client.
ProviderBuilder is a provider-like struct for use in generating a provider using the ent client.