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"

	SharedServiceAccount = "serviceAccount:cloud-logs@system.gserviceaccount.com"
)

The only IDs that WriteLogEntries will accept. Important for testing Ping.

Functions

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 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
darwin/amd64
Imports
15 packages
Last checked
14 minutes ago

Tools for package owners.