(t *testing.T)
| 553 | } |
| 554 | |
| 555 | func TestCounterInt64_GetValue(t *testing.T) { |
| 556 | counter := &counterInt64{ |
| 557 | ignoreRollbackOf: 1024, |
| 558 | } |
| 559 | counter.value.Store(42) |
| 560 | |
| 561 | assert.Equal(t, int64(42), counter.GetValue()) |
| 562 | } |
| 563 | |
| 564 | func TestCounterInt64_IsStale(t *testing.T) { |
| 565 | tests := []struct { |