From a6715a27a0f57a95024aa0e4e1516b8834ccc981 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Fri, 13 Sep 2013 08:20:30 -0700 Subject: [PATCH] code style cleanup run through 'gofmt -s' --- github/gists_test.go | 10 +++++----- github/git_trees_test.go | 6 +++--- github/issues_test.go | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/github/gists_test.go b/github/gists_test.go index 7569cc6..bd755da 100644 --- a/github/gists_test.go +++ b/github/gists_test.go @@ -154,7 +154,7 @@ func TestGistsService_Create(t *testing.T) { Description: String("Gist description"), Public: Bool(false), Files: map[GistFilename]GistFile{ - "test.txt": GistFile{Content: String("Gist file content")}, + "test.txt": {Content: String("Gist file content")}, }, } @@ -191,7 +191,7 @@ func TestGistsService_Create(t *testing.T) { Description: String("Gist description"), Public: Bool(false), Files: map[GistFilename]GistFile{ - "test.txt": GistFile{Filename: String("test.txt")}, + "test.txt": {Filename: String("test.txt")}, }, } if !reflect.DeepEqual(gist, want) { @@ -206,7 +206,7 @@ func TestGistsService_Edit(t *testing.T) { input := &Gist{ Description: String("New description"), Files: map[GistFilename]GistFile{ - "new.txt": GistFile{Content: String("new file content")}, + "new.txt": {Content: String("new file content")}, }, } @@ -246,8 +246,8 @@ func TestGistsService_Edit(t *testing.T) { Description: String("new description"), Public: Bool(false), Files: map[GistFilename]GistFile{ - "test.txt": GistFile{Filename: String("test.txt")}, - "new.txt": GistFile{Filename: String("new.txt")}, + "test.txt": {Filename: String("test.txt")}, + "new.txt": {Filename: String("new.txt")}, }, } if !reflect.DeepEqual(gist, want) { diff --git a/github/git_trees_test.go b/github/git_trees_test.go index ce751cf..08cc769 100644 --- a/github/git_trees_test.go +++ b/github/git_trees_test.go @@ -35,7 +35,7 @@ func TestGitService_GetTree(t *testing.T) { want := Tree{ SHA: String("s"), Entries: []TreeEntry{ - TreeEntry{ + { Type: String("blob"), }, }, @@ -55,7 +55,7 @@ func TestGitService_CreateTree(t *testing.T) { defer teardown() input := []TreeEntry{ - TreeEntry{ + { Path: String("file.rb"), Mode: String("100644"), Type: String("blob"), @@ -101,7 +101,7 @@ func TestGitService_CreateTree(t *testing.T) { want := Tree{ String("cd8274d15fa3ae2ab983129fb037999f264ba9a7"), []TreeEntry{ - TreeEntry{ + { Path: String("file.rb"), Mode: String("100644"), Type: String("blob"), diff --git a/github/issues_test.go b/github/issues_test.go index 08061ed..e5ade3f 100644 --- a/github/issues_test.go +++ b/github/issues_test.go @@ -151,7 +151,7 @@ func TestIssuesService_Get(t *testing.T) { want := &Issue{ Number: Int(1), - Labels: []Label{Label{ + Labels: []Label{{ URL: String("u"), Name: String("n"), Color: String("c"),