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

Unleash / unleash-client-go / 7285437228
80%
v3: 86%

Build:
Build:
LAST BUILD BRANCH: v4
DEFAULT BRANCH: v3
Ran 21 Dec 2023 07:55AM UTC
Jobs 3
Files 29
Run time 4s
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

21 Dec 2023 07:54AM UTC coverage: 79.631% (+1.2%) from 78.444%
7285437228

push

github

web-flow
fix: variant fallback usage (#171)

This PR fixes a bug in how we use fallback variants in this SDK.

The fallback should be used when there is no flag, when the flag doesn't have any variants, and if the flag has variants, but is disabled. However, prior to this, it was only used if the flag didn't exist.

It addresses the issues in and closes #160.

* fix: add tests and impl

* fix: update comments

* fix: minor rename

* fix: use noopListener

* fix: don't change the "FeatureEnabled" state of the fallback variant

* Chore: remove empty struct from list

* Test: ensure that the fallback variant's `FeatureEnabled` is unchanged

* Docs: add notes about `FeatureEnabled` to function docs

9 of 10 new or added lines in 1 file covered. (90.0%)

1 existing line in 1 file now uncovered.

1251 of 1571 relevant lines covered (79.63%)

279.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.48
2.88% client.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.48
2.88% client.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.15 - 7285437228.1 21 Dec 2023 07:55AM UTC 29
79.63
GitHub Action Run
2 Go-1.13 - 7285437228.2 21 Dec 2023 07:55AM UTC 29
79.63
GitHub Action Run
3 Go-1.16 - 7285437228.3 21 Dec 2023 07:55AM UTC 29
79.63
GitHub Action Run
Source Files on build 7285437228
  • Tree
  • List 29
  • Changed 8
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4081ef8b on github
  • Prev Build on v4 (#7245542358)
  • Next Build on v4 (#7288386037)
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