test

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName  = "TestFunctionName"
	LogStreamName    = "2018/01/01/[$LATEST]1234567890"
	AppID            = "1234567890"
	FunctionVersion  = "$Version"
	ApplicationStage = "TestStage"
	Region           = "TestRegion"
	MemoryLimit      = 512
	LogGroupName     = "TestLogGroupName"
)

Variables

This section is empty.

Functions

func CleanEnvironment

func CleanEnvironment()

func PrepareEnvironment

func PrepareEnvironment()

Types

type MockReporter

type MockReporter struct {
	mock.Mock
	MessageQueue []plugin.MonitoringDataWrapper
	ReportedFlag *uint32
}

MockReporter is used in tests for mock reporter

func NewMockReporter

func NewMockReporter() *MockReporter

NewMockReporter returns a new MockReporter

func (*MockReporter) ClearData

func (r *MockReporter) ClearData()

func (*MockReporter) Collect

func (r *MockReporter) Collect(messages []plugin.MonitoringDataWrapper)

func (*MockReporter) FlushFlag

func (r *MockReporter) FlushFlag()

func (*MockReporter) Report

func (r *MockReporter) Report()

func (*MockReporter) Reported

func (r *MockReporter) Reported() *uint32

Source Files

  • util.go

Jump to

Keyboard shortcuts

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