MCPcopy Create free account
hub / github.com/apache/fory / VarInt64RoundTrip

Method VarInt64RoundTrip

csharp/tests/Fory.Tests/ByteBufferTests.cs:171–181  ·  view source on GitHub ↗
(long value)

Source from the content-addressed store, hash-verified

169 }
170
171 [Theory]
172 [MemberData(nameof(VarInt64Cases))]
173 public void VarInt64RoundTrip(long value)
174 {
175 ByteWriter writer = new();
176 writer.WriteVarInt64(value);
177
178 ByteReader reader = new(writer.ToArray());
179 Assert.Equal(value, reader.ReadVarInt64());
180 Assert.Equal(0, reader.Remaining);
181 }
182
183 [Fact]
184 public void VarUInt36SmallBoundariesAndOverflow()

Callers

nothing calls this directly

Calls 4

WriteVarInt64Method · 0.80
ToArrayMethod · 0.80
ReadVarInt64Method · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected