Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Yu Okunev <xaionaro@dx.center>
  • Loading branch information
xaionaro committed Jun 6, 2020
1 parent 627121e commit 7b6a077
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions example_custom_faker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand All @@ -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
})
Expand Down
4 changes: 2 additions & 2 deletions faker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
}
})
Expand Down

0 comments on commit 7b6a077

Please sign in to comment.