MCPcopy Create free account
hub / github.com/astercloud/aster / BenchmarkGrepTool_ComplexPattern

Function BenchmarkGrepTool_ComplexPattern

pkg/tools/builtin/grep_test.go:447–466  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

445}
446
447func BenchmarkGrepTool_ComplexPattern(b *testing.B) {
448 if testing.Short() {
449 b.Skip("Skipping complex pattern benchmark in short mode")
450 }
451
452 tool, err := NewGrepTool(nil)
453 if err != nil {
454 b.Fatalf("Failed to create Grep tool: %v", err)
455 }
456
457 input := map[string]any{
458 "pattern": "(func|type|struct)\\s+\\w+",
459 "file_type": "go",
460 "output_mode": "content",
461 "line_numbers": true,
462 "max_results": 50,
463 }
464
465 BenchmarkTool(b, tool, input)
466}

Callers

nothing calls this directly

Calls 2

NewGrepToolFunction · 0.85
BenchmarkToolFunction · 0.85

Tested by

no test coverage detected