summaryrefslogtreecommitdiff
path: root/aws
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2016-09-06 23:45:54 -0400
committerDave Henderson <dhenderson@gmail.com>2016-09-06 23:45:54 -0400
commitdb0858f3058ad0f9589f51c7ea578a745d212a65 (patch)
tree2548c04316c24530577d8687edbcfbe8978a2fad /aws
parent3c8b77b64e4a2adfea64456cac12eaa92030d79a (diff)
Formatting with gofmt -s
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'aws')
-rw-r--r--aws/ec2info_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/aws/ec2info_test.go b/aws/ec2info_test.go
index 14ca655c..c99fe161 100644
--- a/aws/ec2info_test.go
+++ b/aws/ec2info_test.go
@@ -16,9 +16,9 @@ type DummyInstanceDescriber struct {
func (d DummyInstanceDescriber) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
output := &ec2.DescribeInstancesOutput{
Reservations: []*ec2.Reservation{
- &ec2.Reservation{
+ {
Instances: []*ec2.Instance{
- &ec2.Instance{
+ {
Tags: d.tags,
},
},
@@ -33,11 +33,11 @@ func TestTag_MissingKey(t *testing.T) {
defer server.Close()
client := DummyInstanceDescriber{
tags: []*ec2.Tag{
- &ec2.Tag{
+ {
Key: aws.String("foo"),
Value: aws.String("bar"),
},
- &ec2.Tag{
+ {
Key: aws.String("baz"),
Value: aws.String("qux"),
},
@@ -60,11 +60,11 @@ func TestTag_ValidKey(t *testing.T) {
defer server.Close()
client := DummyInstanceDescriber{
tags: []*ec2.Tag{
- &ec2.Tag{
+ {
Key: aws.String("foo"),
Value: aws.String("bar"),
},
- &ec2.Tag{
+ {
Key: aws.String("baz"),
Value: aws.String("qux"),
},
@@ -104,11 +104,11 @@ func TestNewEc2Info(t *testing.T) {
defer server.Close()
client := DummyInstanceDescriber{
tags: []*ec2.Tag{
- &ec2.Tag{
+ {
Key: aws.String("foo"),
Value: aws.String("bar"),
},
- &ec2.Tag{
+ {
Key: aws.String("baz"),
Value: aws.String("qux"),
},