testing

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 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 (
	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