test

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FunctionName       = "TestFunctionName"
	LogStreamName      = "2018/01/01/[$LATEST]1234567890"
	AppId              = "1234567890"
	FunctionVersion    = "$Version"
	ApplicationProfile = "TestProfile"
	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 []interface{}
}

MockReporter is used in tests for mock reporter

func (*MockReporter) Clear

func (r *MockReporter) Clear()

func (*MockReporter) Collect

func (r *MockReporter) Collect(messages []interface{})

func (*MockReporter) Report

func (r *MockReporter) Report(apiKey string)

Source Files

  • util.go

Jump to

Keyboard shortcuts

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