1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-20 00:18:12 +08:00
Files
kubo/core/commands/root_test.go
2024-03-05 08:21:13 +00:00

22 lines
366 B
Go

package commands
import (
"testing"
)
func TestCommandTree(t *testing.T) {
printErrors := func(errs map[string][]error) {
if errs == nil {
return
}
t.Error("In Root command tree:")
for cmd, err := range errs {
t.Errorf(" In X command %s:", cmd)
for _, e := range err {
t.Errorf(" %s", e)
}
}
}
printErrors(Root.DebugValidate())
}