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

Function primitiveData

go/fory/fory_test.go:30–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28)
29
30func primitiveData() []any {
31 return []any{
32 false,
33 true,
34 byte(0),
35 byte(1),
36 byte(MaxUint8),
37 int8(MinInt8),
38 int8(-1),
39 int8(1),
40 int8(MaxInt8),
41 int16(MinInt16),
42 int16(-1),
43 int16(1),
44 int16(MaxInt16),
45 int32(MinInt32),
46 int32(-1),
47 int32(1),
48 int32(MaxInt32),
49 int64(MinInt64),
50 int64(-1),
51 int64(1),
52 int64(MaxInt64),
53 MinInt,
54 -1,
55 1,
56 MaxInt,
57 float32(-1),
58 float32(1),
59 float64(-1),
60 float64(1),
61 "str",
62 "",
63 }
64}
65
66func commonSlice() []any {
67 return []any{

Callers 2

TestSerializePrimitivesFunction · 0.85
TestSerializeSliceFunction · 0.85

Calls 6

int8Function · 0.50
int16Function · 0.50
int32Function · 0.50
int64Function · 0.50
float32Function · 0.50
float64Function · 0.50

Tested by

no test coverage detected