bloom_filter_test

  • 2022-12-14
  • 浏览 (555)

bloom_filter_test.go 源码

package bloomfilter

import (
	"testing"
)

func TestNewBloomFilter(t *testing.T) {
	filter := NewBloomFilter(1000, 10)
	filter.Add("roseduan")
	filter.Add("roseduanasd")

	r := filter.Contains("rosed12uan1")
	t.Log(r)
}

你可能感兴趣的文章

bloom_filter

0  赞