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

Function newFoo

go/fory/fory_test.go:371–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369}
370
371func newFoo() Foo {
372 return Foo{
373 F1: 1,
374 F2: "str",
375 F3: []string{"str1", "", "str2"},
376 F4: map[string]int32{
377 "k1": 1,
378 "k2": 2,
379 "k3": 3,
380 "k4": 4,
381 "k5": 5,
382 "k6": 6,
383 },
384 F5: Bar{
385 F1: 1,
386 F2: "str",
387 },
388 }
389}
390
391func TestSerializeStruct(t *testing.T) {
392 for _, referenceTracking := range []bool{false, true} {

Callers 4

TestSerializeStructFunction · 0.85
TestReferenceResolverFunction · 0.85
TestNonReferenceResolverFunction · 0.85
TestNullableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected