diff --git a/g/container/garray/garray_z_bench_test.go b/g/container/garray/garray_z_bench_test.go index 4bf02e45a..0ca1d4a16 100644 --- a/g/container/garray/garray_z_bench_test.go +++ b/g/container/garray/garray_z_bench_test.go @@ -9,35 +9,35 @@ package garray_test import ( - "github.com/gogf/gf/g/container/garray" - "testing" + "github.com/gogf/gf/g/container/garray" + "testing" ) var ( - sortedIntArray = garray.NewSortedIntArray() + sortedIntArray = garray.NewSortedIntArray() ) func BenchmarkSortedIntArray_Add(b *testing.B) { - b.N = 1000 - for i := 0; i < b.N; i++ { - sortedIntArray.Add(i) - } + b.N = 1000 + for i := 0; i < b.N; i++ { + sortedIntArray.Add(i) + } } func BenchmarkSortedIntArray_Search(b *testing.B) { - for i := 0; i < b.N; i++ { - sortedIntArray.Search(i) - } + for i := 0; i < b.N; i++ { + sortedIntArray.Search(i) + } } func BenchmarkSortedIntArray_PopLeft(b *testing.B) { - for i := 0; i < b.N; i++ { - sortedIntArray.PopLeft() - } + for i := 0; i < b.N; i++ { + sortedIntArray.PopLeft() + } } func BenchmarkSortedIntArray_PopRight(b *testing.B) { - for i := 0; i < b.N; i++ { - sortedIntArray.PopLeft() - } + for i := 0; i < b.N; i++ { + sortedIntArray.PopLeft() + } } diff --git a/g/container/gset/gset_z_unit_string_test.go b/g/container/gset/gset_z_unit_string_test.go index de04653df..c75c2f10b 100644 --- a/g/container/gset/gset_z_unit_string_test.go +++ b/g/container/gset/gset_z_unit_string_test.go @@ -254,5 +254,3 @@ func TestStringSet_Pops(t *testing.T) { gtest.AssertIN(str2, []string{"a", "b", "c"}) }) } - -