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

99designs / gqlgen / 14427842378

13 Apr 2025 08:38AM UTC coverage: 72.991% (-0.3%) from 73.331%
14427842378

Pull #3660

github

sonatard
Omittable supports IsZero method for omitzero

API may behave differently when JSON is undefined versus when it is null.

- undefined
  - no effect
  - json: `{}`

```go
input := UserUpdateInput{
		Name:         graphql.Omittable[string]{},
}
```

- null
  - removes name
  - json: `{"name":null}`

```go
input := UserUpdateInput{
		Name:         graphql.OmittableOf[string](null),
}
```
Pull Request #3660: Omittable supports IsZero method for omitzero

19 of 83 new or added lines in 3 files covered. (22.89%)

6 existing lines in 3 files now uncovered.

8737 of 11970 relevant lines covered (72.99%)

730.69 hits per line

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

64.81
/codegen/object.go


Source Not Available

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

© 2026 Coveralls, Inc