MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestFixed64_Serialize

Function TestFixed64_Serialize

common/fixed64_test.go:28–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestFixed64_Serialize(t *testing.T) {
29 val := Fixed64(10)
30 buf := NewZeroCopySink(nil)
31 val.Serialization(buf)
32 val2 := Fixed64(0)
33 val2.Deserialization(NewZeroCopySource(buf.Bytes()))
34
35 assert.Equal(t, val, val2)
36}
37
38func TestFixed64_Deserialize(t *testing.T) {
39 val := Fixed64(0)

Callers

nothing calls this directly

Calls 6

BytesMethod · 0.95
Fixed64TypeAlias · 0.85
NewZeroCopySinkFunction · 0.85
NewZeroCopySourceFunction · 0.85
SerializationMethod · 0.65
DeserializationMethod · 0.65

Tested by

no test coverage detected