• 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/nested/array_fact_check_claims_record.go
1
// Code generated by github.com/actgardner/gogen-avro/v7. DO NOT EDIT.
2
/*
3
 * SOURCE:
4
 *     nested.avsc.out
5
 */
6
package nested
7

8
import (
9
        "io"
10

11
        "github.com/actgardner/gogen-avro/v7/vm"
12
        "github.com/actgardner/gogen-avro/v7/vm/types"
13
)
14

UNCOV
15
func writeArrayFactCheckClaims_record(r []*FactCheckClaims_record, w io.Writer) error {
×
UNCOV
16
        err := vm.WriteLong(int64(len(r)), w)
×
UNCOV
17
        if err != nil || len(r) == 0 {
×
UNCOV
18
                return err
×
UNCOV
19
        }
×
20
        for _, e := range r {
×
21
                err = writeFactCheckClaims_record(e, w)
×
22
                if err != nil {
×
23
                        return err
×
24
                }
×
25
        }
26
        return vm.WriteLong(0, w)
×
27
}
28

29
type ArrayFactCheckClaims_recordWrapper struct {
30
        Target *[]*FactCheckClaims_record
31
}
32

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

51
func (r *ArrayFactCheckClaims_recordWrapper) AppendArray() types.Field {
×
52
        var v *FactCheckClaims_record
×
53
        v = NewFactCheckClaims_record()
×
54

×
55
        *r.Target = append(*r.Target, v)
×
56

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