diff --git a/g/os/gspath/gspath_test.go b/g/os/gspath/gspath_test.go deleted file mode 100644 index 707bcdcf8..000000000 --- a/g/os/gspath/gspath_test.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2017 gf Author(https://github.com/gogf/gf). All Rights Reserved. -// -// This Source Code Form is subject to the terms of the MIT License. -// If a copy of the MIT was not distributed with this file, -// You can obtain one at https://github.com/gogf/gf. - -package gspath - -import ( - "testing" -) - -var ( - sp = New() -) - -func init() { - sp.Add("/Users/john/Temp") -} - -func Benchmark_Search(b *testing.B) { - for i := 0; i < b.N; i++ { - sp.Search("1") - } -} - -func Benchmark_Search_None(b *testing.B) { - for i := 0; i < b.N; i++ { - sp.Search("1000") - } -} - -func Benchmark_Search_IndexFiles(b *testing.B) { - for i := 0; i < b.N; i++ { - sp.Search("1", "index.html") - } -}