• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GannettDigital / jstransform / 17108478813

20 Aug 2025 07:35PM UTC coverage: 33.717% (-3.4%) from 37.122%
17108478813

Pull #154

github

gannett-ggreer
Use "omitzero" for non-slice/non-pointer structure levels.

"omitempty" never did anything for those types anyway.
Pull Request #154: APIS-8302 - Use "omitzero" for non-slice/non-pointer structure levels.

11 of 23 new or added lines in 8 files covered. (47.83%)

1286 existing lines in 58 files now uncovered.

4833 of 14334 relevant lines covered (33.72%)

25.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/generate/avro_test_data/avro/simple/array_contributors_record.go
1
// Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
2
package simple
3

4
import (
5
        "io"
6

7
        "github.com/actgardner/gogen-avro/v7/vm"
8
        "github.com/actgardner/gogen-avro/v7/vm/types"
9
)
10

UNCOV
11
func writeArrayContributors_record(r []*Contributors_record, w io.Writer) error {
×
UNCOV
12
        err := vm.WriteLong(int64(len(r)), w)
×
UNCOV
13
        if err != nil || len(r) == 0 {
×
UNCOV
14
                return err
×
UNCOV
15
        }
×
16
        for _, e := range r {
×
17
                err = writeContributors_record(e, w)
×
18
                if err != nil {
×
19
                        return err
×
20
                }
×
21
        }
22
        return vm.WriteLong(0, w)
×
23
}
24

25
type ArrayContributors_recordWrapper struct {
26
        Target *[]*Contributors_record
27
}
28

29
func (_ *ArrayContributors_recordWrapper) SetBoolean(v bool)     { panic("Unsupported operation") }
×
30
func (_ *ArrayContributors_recordWrapper) SetInt(v int32)        { panic("Unsupported operation") }
×
31
func (_ *ArrayContributors_recordWrapper) SetLong(v int64)       { panic("Unsupported operation") }
×
32
func (_ *ArrayContributors_recordWrapper) SetFloat(v float32)    { panic("Unsupported operation") }
×
33
func (_ *ArrayContributors_recordWrapper) SetDouble(v float64)   { panic("Unsupported operation") }
×
34
func (_ *ArrayContributors_recordWrapper) SetBytes(v []byte)     { panic("Unsupported operation") }
×
35
func (_ *ArrayContributors_recordWrapper) SetString(v string)    { panic("Unsupported operation") }
×
36
func (_ *ArrayContributors_recordWrapper) SetUnionElem(v int64)  { panic("Unsupported operation") }
×
37
func (_ *ArrayContributors_recordWrapper) Get(i int) types.Field { panic("Unsupported operation") }
×
38
func (_ *ArrayContributors_recordWrapper) AppendMap(key string) types.Field {
×
39
        panic("Unsupported operation")
×
40
}
UNCOV
41
func (_ *ArrayContributors_recordWrapper) Finalize()        {}
×
42
func (_ *ArrayContributors_recordWrapper) SetDefault(i int) { panic("Unsupported operation") }
×
43
func (r *ArrayContributors_recordWrapper) NullField(i int) {
×
44
        panic("Unsupported operation")
×
45
}
46

47
func (r *ArrayContributors_recordWrapper) AppendArray() types.Field {
×
48
        var v *Contributors_record
×
49
        v = NewContributors_record()
×
50

×
51
        *r.Target = append(*r.Target, v)
×
52

×
53
        return (*r.Target)[len(*r.Target)-1]
×
54
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc