From 7b6a0771281ef21bbaf4fc3a1e292b63f6c2a9f8 Mon Sep 17 00:00:00 2001 From: Dmitry Yu Okunev Date: Sat, 6 Jun 2020 17:24:47 +0000 Subject: [PATCH] go fmt Signed-off-by: Dmitry Yu Okunev --- example_custom_faker_test.go | 10 +++++----- faker_test.go | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example_custom_faker_test.go b/example_custom_faker_test.go index 160a1ca..dda4a9a 100644 --- a/example_custom_faker_test.go +++ b/example_custom_faker_test.go @@ -18,9 +18,9 @@ type CustomUUID []byte // Sample ... type Sample struct { - ID int64 `faker:"customIdFaker"` - Gondoruwo Gondoruwo `faker:"gondoruwo"` - Danger string `faker:"danger"` + ID int64 `faker:"customIdFaker"` + Gondoruwo Gondoruwo `faker:"gondoruwo"` + Danger string `faker:"danger"` UUID CustomUUID `faker:"customUUID"` } @@ -42,8 +42,8 @@ func CustomGenerator() { }) _ = faker.AddProvider("customUUID", func(v reflect.Value) (interface{}, error) { - s := []byte { - 0,8,7,2,3, + s := []byte{ + 0, 8, 7, 2, 3, } return s, nil }) diff --git a/faker_test.go b/faker_test.go index 91ec250..6727b40 100644 --- a/faker_test.go +++ b/faker_test.go @@ -972,7 +972,7 @@ func TestExtend(t *testing.T) { t.Run("test-with-custom-slice-type", func(t *testing.T) { a := CustomThatUsesSlice{} err := AddProvider("custom-type-over-slice", func(v reflect.Value) (interface{}, error) { - return []byte{0,1,2,3,4}, nil + return []byte{0, 1, 2, 3, 4}, nil }) if err != nil { @@ -985,7 +985,7 @@ func TestExtend(t *testing.T) { t.Error("Expected Not Error, But Got: ", err) } - if reflect.DeepEqual(a.UUID, []byte{0,1,2,3,4}) { + if reflect.DeepEqual(a.UUID, []byte{0, 1, 2, 3, 4}) { t.Error("UUID should equal test value") } })