package testing

import "cloud.google.com/go/logging/internal/testing"

Package testing provides support for testing the logging client.

Index

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.

Source Files

fake.go unique.go

Version
v0.7.0
Published
Mar 10, 2017
Platform
darwin/amd64
Imports
15 packages
Last checked
14 minutes ago

Tools for package owners.