• 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/nonest/avro/complex/array_crops_record.go
1
// Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
2
package complex
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 writeArrayCrops_record(r []*Crops_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 = writeCrops_record(e, w)
×
18
                if err != nil {
×
19
                        return err
×
20
                }
×
21
        }
22
        return vm.WriteLong(0, w)
×
23
}
24

25
type ArrayCrops_recordWrapper struct {
26
        Target *[]*Crops_record
27
}
28

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

45
func (r *ArrayCrops_recordWrapper) AppendArray() types.Field {
×
46
        var v *Crops_record
×
47
        v = NewCrops_record()
×
48

×
49
        *r.Target = append(*r.Target, v)
×
50

×
51
        return (*r.Target)[len(*r.Target)-1]
×
52
}
×
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