1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-20 08:27:29 +08:00
Files
kubo/core/commands/config_test.go

17 lines
308 B
Go

package commands
import "testing"
func TestScrubMapInternalDelete(t *testing.T) {
m, err := scrubMapInternal(nil, nil, true)
if err != nil {
t.Error(err)
}
if m == nil {
t.Errorf("expecting an empty map, got nil")
}
if len(m) != 0 {
t.Errorf("expecting an empty map, got a non-empty map")
}
}