package testing
import "cloud.google.com/go/logging/internal/testing"
Package testing provides support for testing the logging client.
Index ¶
Constants ¶
const (
= "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
Compare two payloads, assuming they are both proto.Messages or both strings.
Source Files ¶
equal.go fake.go
- Version
- v0.26.0
- Published
- Aug 7, 2018
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 2 minutes ago –
Tools for package owners.