testing

package
v0.33.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package testing provides support for testing the logging client.

Index

Constants

View Source
const (
	ValidProjectID = "PROJECT_ID"
	ValidOrgID     = "433637338589"

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

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

Variables

This section is empty.

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 added in v0.8.0

func PayloadEqual(a, b interface{}) bool

PayloadEqual compares two payloads, assuming they are both proto.Messages or both strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL