1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00
Files
kubo/core/commands/config_test.go
Petar Maymounkov 8794928c31 add remote pinning policy for mfs (#7798)
* remote pinning service MFS policy
* update go-ipfs-config
* hardening secret sanitization in `ipfs config` commands

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-01-28 18:58:44 -05:00

18 lines
309 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")
}
}