MCPcopy Create free account
hub / github.com/erpc/erpc / TestCounterInt64_GetValue

Function TestCounterInt64_GetValue

data/shared_state_variable_test.go:555–562  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

553}
554
555func 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
564func TestCounterInt64_IsStale(t *testing.T) {
565 tests := []struct {

Callers

nothing calls this directly

Calls 2

GetValueMethod · 0.95
StoreMethod · 0.80

Tested by

no test coverage detected