MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestStat_EncodeSumValue

Function TestStat_EncodeSumValue

internal/metrics/stat_test.go:60–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

58}
59
60func TestStat_EncodeSumValue(t *testing.T) {
61 var a = assert.NewAssertion(t)
62
63 var b = metrics.EncodeSumValue(123, 456)
64 t.Log(b)
65
66 count, sum := metrics.DecodeSumValue(b)
67 a.IsTrue(count == 123)
68 a.IsTrue(sum == 456)
69}

Callers

nothing calls this directly

Calls 3

EncodeSumValueFunction · 0.92
DecodeSumValueFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected