Documentation

Overview

Package testing provides support for testing the logging client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpiredUniqueIDs

func ExpiredUniqueIDs(ids []string, prefix string) []string

ExpiredUniqueIDs returns a subset of ids that are unique IDs as generated by UniqueID(prefix) and are older than expiredAge.

func NewServer

func NewServer() (string, error)

NewServer creates a new in-memory fake server implementing the logging service. It returns the address of the server.

func UniqueID

func UniqueID(prefix string) string

UniqueID generates unique IDs so tests don't interfere with each other. All unique IDs generated in the same test execution will have the same timestamp.

Types

This section is empty.

Source Files