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

openconfig / ygot / 8311470220
89%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2024 12:15AM UTC
Jobs 1
Files 84
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jan 2024 10:55PM UTC coverage: 88.811% (-0.8%) from 89.612%
8311470220

push

github

web-flow
Fix `Marshal7951` for direct union leaf calls. (#947)

When `jsonValue` is called using the output of `reflect.ValueOf()` instead of
`reflect.StructField`, any interface type is lost through re-packing to the
empty interface (any). This means the `reflect.Kind` of a union field is no
longer the union type, but instead its underlying concrete type. The current
code doesn't handle this case, leading to runtime errors.

This handling code is now added, with a couple more fixes related to `empty`
types.

-----
Tested manually that the following ygnmi call is no longer affected by the
original error:
```go
sp := gnmi.OC().NetworkInstance("DEFAULT").Protocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_STATIC, "STATIC")
return ygnmi.Replace(context.Background(), c, sp.Static("1.1.1.1/32").SetTag().Config(), oc.NetworkInstance_Protocol_Static_SetTag_Union(oc.UnionUint32(42)))
```

47 of 52 new or added lines in 2 files covered. (90.38%)

13906 of 15658 relevant lines covered (88.81%)

482.79 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% testutil/types.go
4
89.87
-0.0% ygot/render.go
Jobs
ID Job ID Ran Files Coverage
1 8311470220.1 17 Mar 2024 12:15AM UTC 84
88.81
GitHub Action Run
Source Files on build 8311470220
  • Tree
  • List 84
  • Changed 22
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 12a8460a on github
  • Prev Build on master (#7493697687)
  • Next Build on master (#8319299494)
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