Browse Source

code style cleanup

run through 'gofmt -s'
Will Norris 12 years ago
parent
commit
a6715a27a0
3 changed files with 9 additions and 9 deletions
  1. +5
    -5
      github/gists_test.go
  2. +3
    -3
      github/git_trees_test.go
  3. +1
    -1
      github/issues_test.go

+ 5
- 5
github/gists_test.go View File

@ -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) {


+ 3
- 3
github/git_trees_test.go View File

@ -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"),


+ 1
- 1
github/issues_test.go View File

@ -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"),


Loading…
Cancel
Save