(b *testing.B)
| 31 | } |
| 32 | |
| 33 | func BenchmarkRuneMap_Lookup(b *testing.B) { |
| 34 | var tree = re.NewRuneTree([]string{"abc", "abd", "def", "ghi", "中国"}) |
| 35 | for i := 0; i < b.N; i++ { |
| 36 | tree.Lookup("我来自中国", true) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func BenchmarkRuneMap_Lookup2_NOT_FOUND(b *testing.B) { |
| 41 | var tree = re.NewRuneTree([]string{"abc", "abd", "cde", "GHI"}) |
nothing calls this directly
no test coverage detected