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

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

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

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

1251 of 1571 relevant lines covered (79.63%)

93.23 hits per line

Source Files on job Go-1.15 - 7285437228.1
  • Tree
  • List 29
  • Changed 7
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7285437228
  • 4081ef8b on github
  • Prev Job for on v4 (#7245542358.2)
  • Next Job for on v4 (#7288386037.1)
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