mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Autoformat go
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user