mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-08-01 18:22:36 +00:00
21 lines
421 B
Go
21 lines
421 B
Go
package cmd
|
|
|
|
import "testing"
|
|
|
|
func TestBuiltinToolSeedDataIncludesWait(t *testing.T) {
|
|
t.Parallel()
|
|
for _, def := range builtinToolSeedData() {
|
|
if def.Name != "wait" {
|
|
continue
|
|
}
|
|
if def.Category != "runtime" {
|
|
t.Fatalf("wait category = %q, want runtime", def.Category)
|
|
}
|
|
if !def.Enabled {
|
|
t.Fatal("wait should be enabled by default")
|
|
}
|
|
return
|
|
}
|
|
t.Fatal("builtinToolSeedData() missing wait")
|
|
}
|