fix make c on macos

This commit is contained in:
Karl Seguin
2023-11-21 11:42:34 +08:00
parent de3e573a65
commit bf904fff3c
2 changed files with 7 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ f: ## Format code
c: ## Measure code coverage
go test -race -covermode=atomic ./... -coverprofile=cover.out && \
go tool cover -func cover.out \
| grep -vP '[89]\d\.\d%' | grep -v '100.0%' \
| grep -v '100.0%' \
|| true
rm cover.out
rm cover.out

View File

@@ -16,3 +16,8 @@ func Test_Configuration_BucketsPowerOf2(t *testing.T) {
}
}
}
func Test_Configuration_Buffers(t *testing.T) {
assert.Equal(t, Configure[int]().DeleteBuffer(24).deleteBuffer, 24)
assert.Equal(t, Configure[int]().PromoteBuffer(95).promoteBuffer, 95)
}