package testing
import "cloud.google.com/go/logging/internal/testing"
Package testing provides support for testing the logging client.
Index ¶
Constants ¶
const ( ValidProjectID = "PROJECT_ID" ValidOrgID = "433637338589" = "serviceAccount:cloud-logs@system.gserviceaccount.com" )
The only IDs that WriteLogEntries will accept. Important for testing Ping.
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.
Source Files ¶
equal.go fake.go
- Version
- v0.35.1
- Published
- Jan 22, 2019
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 2 minutes ago –
Tools for package owners.