Documentation ¶
Overview ¶
Package testing provides support for testing the logging client.
Index ¶
Constants ¶
View Source
const ( ValidProjectID = "PROJECT_ID" ValidOrgID = "433637338589" )
The only IDs that WriteLogEntries will accept. Important for testing Ping.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
NewServer creates a new in-memory fake server implementing the logging service. It returns the address of the server.
func PayloadEqual ¶
func PayloadEqual(a, b interface{}) bool
PayloadEqual compares two payloads, assuming they are both proto.Messages or both strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.