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

Function BenchmarkBashTool_ComplexCommand

pkg/tools/builtin/bash_test.go:412–427  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

410}
411
412func BenchmarkBashTool_ComplexCommand(b *testing.B) {
413 if testing.Short() {
414 b.Skip("Skipping complex command benchmark in short mode")
415 }
416
417 tool, err := NewBashTool(nil)
418 if err != nil {
419 b.Fatalf("Failed to create Bash tool: %v", err)
420 }
421
422 input := map[string]any{
423 "command": "seq 1 100 | tail -10",
424 }
425
426 BenchmarkTool(b, tool, input)
427}

Callers

nothing calls this directly

Calls 2

NewBashToolFunction · 0.85
BenchmarkToolFunction · 0.85

Tested by

no test coverage detected