testing

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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