New Upstream Snapshot - golang-github-willf-bloom
Ready changes
Summary
Merged new upstream version: 3.3.1+git20230113.1.a7ec2b7 (was: 3.3.1).
Resulting package
Built on 2023-02-08T13:25 (took 3m13s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots golang-github-willf-bloom-dev
Lintian Result
- golang-github-willf-bloom-dev_3.3.1+git20230113.1.a7ec2b7-1~jan+nus1_all.deb
- golang-github-willf-bloom_3.3.1+git20230113.1.a7ec2b7-1~jan+nus1.dsc
- golang-github-willf-bloom_3.3.1+git20230113.1.a7ec2b7-1~jan+nus1_amd64.buildinfo
- golang-github-willf-bloom_3.3.1+git20230113.1.a7ec2b7-1~jan+nus1_amd64.changes
Diff
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 19183fe..0000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# You can add one username per supported platform and one custom link
-patreon: # Replace with your Patreon username
-open_collective: # Replace with your Open Collective username
-ko_fi: # Replace with your Ko-fi username
-custom: https://donate.mcc.org/ # Replace with your custom donation URL
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100644
index 5cbbb34..0000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-on: pull_request
-name: Test
-jobs:
- test:
- strategy:
- matrix:
- go-version: [1.14.x, 1.15.x, 1.16.x]
- os: [ubuntu-latest, macos-latest, windows-latest]
- runs-on: ${{ matrix.os }}
- steps:
- - name: Install Go
- uses: actions/setup-go@v2
- with:
- go-version: ${{ matrix.go-version }}
- - name: Checkout code
- uses: actions/checkout@v2
- - name: Vet
- run: go vet ./...
- - name: Test
- run: go test ./...
-
- single-ver:
- runs-on: ubuntu-latest
- steps:
- - name: Set up Go
- uses: actions/setup-go@v2
- with:
- go-version: 1.16.x
-
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: fmt
- run: diff <(gofmt -s -d .) <(printf "")
-
- - name: Test 386
- run: GOOS=linux GOARCH=386 go test ./...
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index e719739..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,27 +0,0 @@
-# Compiled Object files, Static and Dynamic libs (Shared Objects)
-*.o
-*.a
-*.so
-
-# Folders
-_obj
-_test
-
-# Architecture specific extensions/prefixes
-*.[568vq]
-[568vq].out
-
-*.cgo1.go
-*.cgo2.c
-_cgo_defun.c
-_cgo_gotypes.go
-_cgo_export.*
-
-_testmain.go
-
-*.exe
-*.test
-*.prof
-
-target
-.idea
diff --git a/bloom.go b/bloom.go
index 69e07bc..be446d6 100644
--- a/bloom.go
+++ b/bloom.go
@@ -225,7 +225,9 @@ func (f *BloomFilter) TestLocations(locs []uint64) bool {
return true
}
-// TestAndAdd is the equivalent to calling Test(data) then Add(data).
+// TestAndAdd is equivalent to calling Test(data) then Add(data).
+// The filter is written to unconditionnally: even if the element is present,
+// the corresponding bits are still set. See also TestOrAdd.
// Returns the result of Test.
func (f *BloomFilter) TestAndAdd(data []byte) bool {
present := true
@@ -241,12 +243,15 @@ func (f *BloomFilter) TestAndAdd(data []byte) bool {
}
// TestAndAddString is the equivalent to calling Test(string) then Add(string).
+// The filter is written to unconditionnally: even if the string is present,
+// the corresponding bits are still set. See also TestOrAdd.
// Returns the result of Test.
func (f *BloomFilter) TestAndAddString(data string) bool {
return f.TestAndAdd([]byte(data))
}
-// TestOrAdd is the equivalent to calling Test(data) then if not present Add(data).
+// TestOrAdd is equivalent to calling Test(data) then if not present Add(data).
+// If the element is already in the filter, then the filter is unchanged.
// Returns the result of Test.
func (f *BloomFilter) TestOrAdd(data []byte) bool {
present := true
@@ -262,6 +267,7 @@ func (f *BloomFilter) TestOrAdd(data []byte) bool {
}
// TestOrAddString is the equivalent to calling Test(string) then if not present Add(string).
+// If the string is already in the filter, then the filter is unchanged.
// Returns the result of Test.
func (f *BloomFilter) TestOrAddString(data string) bool {
return f.TestOrAdd([]byte(data))
diff --git a/debian/changelog b/debian/changelog
index e659879..e5f62cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-willf-bloom (3.3.1+git20230113.1.a7ec2b7-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Wed, 08 Feb 2023 13:23:37 -0000
+
golang-github-willf-bloom (3.3.1-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/patches/0001-Disable-murmur-test.patch b/debian/patches/0001-Disable-murmur-test.patch
index 092d0ef..93e1215 100644
--- a/debian/patches/0001-Disable-murmur-test.patch
+++ b/debian/patches/0001-Disable-murmur-test.patch
@@ -9,10 +9,10 @@ Forwarded: not-needed
murmur_test.go | 2 ++
1 file changed, 2 insertions(+)
-diff --git a/murmur_test.go b/murmur_test.go
-index a7d9915..8b163d3 100644
---- a/murmur_test.go
-+++ b/murmur_test.go
+Index: golang-github-willf-bloom.git/murmur_test.go
+===================================================================
+--- golang-github-willf-bloom.git.orig/murmur_test.go
++++ golang-github-willf-bloom.git/murmur_test.go
@@ -1,3 +1,5 @@
+// +build ignore
+
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files