package testing
import "cloud.google.com/go/logging/internal/testing"
Package testing provides support for testing the logging client.
Index ¶
- func ExpiredUniqueIDs(ids []string, prefix string) []string
- func NewServer() (string, error)
- func UniqueID(prefix string) string
Functions ¶
func ExpiredUniqueIDs ¶
ExpiredUniqueIDs returns a subset of ids that are unique IDs as generated by UniqueID(prefix) and are older than expiredAge.
func NewServer ¶
NewServer creates a new in-memory fake server implementing the logging service. It returns the address of the server.
func UniqueID ¶
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.