Autoformat go

This commit is contained in:
Chris Smowton
2024-08-21 12:41:27 +01:00
parent eb6918f88f
commit 9d79feb4d3
8 changed files with 59 additions and 59 deletions

View File

@@ -1,16 +1,16 @@
package makesample_test
import (
"testing"
"makesample"
"makesample"
"testing"
)
// Note because this is a test we do NOT expect this to be extracted.
func TestTestMe(t *testing.T) {
publicResult := makesample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
publicResult := makesample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
}

View File

@@ -1,15 +1,15 @@
package makesample
import (
"testing"
"testing"
)
func TestTestMe(t *testing.T) {
// Note because this is a test we do NOT expect this to be extracted.
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
// Note because this is a test we do NOT expect this to be extracted.
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
}

View File

@@ -1,15 +1,15 @@
package testsample_test
import (
"testing"
"testsample"
"testing"
"testsample"
)
func TestTestMe(t *testing.T) {
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
}

View File

@@ -1,19 +1,19 @@
package testsample
import (
"testing"
"testing"
)
func TestTestMe(t *testing.T) {
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
}

View File

@@ -1,15 +1,15 @@
package testsample_test
import (
"testing"
"testsample"
"testing"
"testsample"
)
func TestTestMe(t *testing.T) {
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
}

View File

@@ -1,19 +1,19 @@
package testsample
import (
"testing"
"testing"
)
func TestTestMe(t *testing.T) {
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
}

View File

@@ -1,16 +1,16 @@
package testsample_test
import (
"testing"
"testsample"
"testing"
"testsample"
)
func TestTestMe(t *testing.T) {
// Note because this is a test we do NOT expect it to be extracted
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
// Note because this is a test we do NOT expect it to be extracted
publicResult := testsample.PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
}

View File

@@ -1,20 +1,20 @@
package testsample
import (
"testing"
"testing"
)
func TestTestMe(t *testing.T) {
// Note because this is a test we do NOT expect it to be extracted
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
// Note because this is a test we do NOT expect it to be extracted
publicResult := PublicFunction()
if publicResult != 1 {
t.Errorf("Expected 1, got %d", publicResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
privateResult := privateFunction()
if privateResult != 2 {
t.Errorf("Expected 2, got %d", privateResult)
}
}