12345678910111213141516171819202122 |
- // Package unit performs initialization and validation for unit tests
- package unit
- import (
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/defaults"
- )
- // Imported is a marker to ensure that this package's init() function gets
- // executed.
- //
- // To use this package, import it and add:
- //
- // var _ = unit.Imported
- const Imported = true
- func init() {
- // mock region and credentials
- defaults.DefaultConfig.Credentials =
- credentials.NewStaticCredentials("AKID", "SECRET", "SESSION")
- defaults.DefaultConfig.WithRegion("mock-region")
- }
|