mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

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