Documentation ¶
Overview ¶
package test contains helpers for writing tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenPort ¶
ListenPort returns a free ephemeral port for listening.
func SkipIfNoCluster ¶
SkipIfNoCluster call t.Skip() if not logged in to a cluster.
Types ¶
type LokiServer ¶
LokiServer is a single-process Loki instance running in a container.
func NewLokiServer ¶
func NewLokiServer() (server *LokiServer, err error)
func RequireLokiServer ¶
func RequireLokiServer(t *testing.T) *LokiServer
func (*LokiServer) Close ¶
func (s *LokiServer) Close() error
func (*LokiServer) Push ¶
func (s *LokiServer) Push(labels map[string]string, lines ...string) error
func (*LokiServer) URL ¶
func (s *LokiServer) URL() *url.URL
Directories ¶
Path | Synopsis |
---|---|
Package domain provides unit tests and benchmarks to be run against all domains.
|
Package domain provides unit tests and benchmarks to be run against all domains. |
package mock is a mock implementation of a korrel8r domain for testing.
|
package mock is a mock implementation of a korrel8r domain for testing. |
Click to show internal directories.
Click to hide internal directories.