MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / assertNewAllocatorStats

Function assertNewAllocatorStats

db/sequence_allocator_test.go:237–244  ·  view source on GitHub ↗
(t *testing.T, stats *base.DatabaseStats, incrCount, reservedCount, assignedCount, releasedCount int64, lastAssignedValue, lastReservedValue uint64)

Source from the content-addressed store, hash-verified

235}
236
237func assertNewAllocatorStats(t *testing.T, stats *base.DatabaseStats, incrCount, reservedCount, assignedCount, releasedCount int64, lastAssignedValue, lastReservedValue uint64) {
238 assert.Equal(t, incrCount, stats.SequenceIncrCount.Value())
239 assert.Equal(t, reservedCount, stats.SequenceReservedCount.Value())
240 assert.Equal(t, assignedCount, stats.SequenceAssignedCount.Value())
241 assert.Equal(t, releasedCount, stats.SequenceReleasedCount.Value())
242 assert.Equal(t, int64(lastAssignedValue), stats.LastSequenceAssignedValue.Value())
243 assert.Equal(t, int64(lastReservedValue), stats.LastSequenceReservedValue.Value())
244}
245
246func TestNextSequenceGreaterThanSingleNode(t *testing.T) {
247

Calls 2

EqualMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected