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

Function BenchmarkBashTool_SimpleCommand

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

Source from the content-addressed store, hash-verified

397}
398
399func BenchmarkBashTool_SimpleCommand(b *testing.B) {
400 tool, err := NewBashTool(nil)
401 if err != nil {
402 b.Fatalf("Failed to create Bash tool: %v", err)
403 }
404
405 input := map[string]any{
406 "command": "echo 'benchmark'",
407 }
408
409 BenchmarkTool(b, tool, input)
410}
411
412func BenchmarkBashTool_ComplexCommand(b *testing.B) {
413 if testing.Short() {

Callers

nothing calls this directly

Calls 2

NewBashToolFunction · 0.85
BenchmarkToolFunction · 0.85

Tested by

no test coverage detected