testing

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 (
	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

Compare 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