test

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName       = "TestFunctionName"
	FunctionName          = "TestFunctionName"
	ApplicationID         = "aws:lambda:TestRegion:guest:TestFunctionName"
	LogStreamName         = "2018/01/01/[$LATEST]1234567890"
	ApplicationInstanceID = "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

Jump to

Keyboard shortcuts

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