func (f *FakeIPSet) DestroySet(set string) error {
	delete(f.Sets, set)
	delete(f.Entries, set)
	return nil
}
DestroySet is part of interface.  It deletes both the entries and the set itself.
package testing
import (
	"fmt"
	"k8s.io/apimachinery/pkg/util/sets"
	"github.com/fabedge/fabedge/third_party/ipset"
)
type FakeIPSet struct {
	Version string
	Sets map[string]*ipset.IPSet
	Entries map[string]sets.String
}
func NewFake(version string) *FakeIPSet {
	return &FakeIPSet{
		Version: version,
		Sets:    make(map[string]*ipset.IPSet),
		Entries: make(map[string]sets.String),
	}
}
func (f *FakeIPSet) GetVersion() (string, error) {
	return f.Version, nil
}
func (f *FakeIPSet) FlushSet(set string) error {
	if f.Entries == nil {
		return fmt.Errorf("entries map can't be nil")
	}
	for {
		if _, has := f.Entries[set].PopAny(); has {
			continue
		}
		break
	}
	return nil
}