fxapptest

package
v0.0.0-...-11620cc Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncLog

type SyncLog struct {
	sync.Mutex
	// contains filtered or unexported fields
}

SyncLog is used to to provide a concurrency safe read/write log.

Use Case: used when inspecting logs in unit tests that have multiple go routines writing to the log concurrently

func NewSyncLog

func NewSyncLog() *SyncLog

NewSyncLog is the SyncLog constructor

func (*SyncLog) Bytes

func (l *SyncLog) Bytes() []byte

Bytes returns the buffer's current content in a concurrency safe manner

func (*SyncLog) Read

func (l *SyncLog) Read(p []byte) (n int, err error)

func (*SyncLog) String

func (l *SyncLog) String() string

func (*SyncLog) Write

func (l *SyncLog) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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