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

Function BenchmarkGrepTool_SimplePattern

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

Source from the content-addressed store, hash-verified

432}
433
434func BenchmarkGrepTool_SimplePattern(b *testing.B) {
435 tool, err := NewGrepTool(nil)
436 if err != nil {
437 b.Fatalf("Failed to create Grep tool: %v", err)
438 }
439
440 input := map[string]any{
441 "pattern": "func",
442 }
443
444 BenchmarkTool(b, tool, input)
445}
446
447func BenchmarkGrepTool_ComplexPattern(b *testing.B) {
448 if testing.Short() {

Callers

nothing calls this directly

Calls 2

NewGrepToolFunction · 0.85
BenchmarkToolFunction · 0.85

Tested by

no test coverage detected