Skip to content

Commit a02d0cf

Browse files
Add one missing test
Signed-off-by: Thomas Poignant <[email protected]>
1 parent 2c59c99 commit a02d0cf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

internal/flagv1/flag_pub_test.go

+21
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,27 @@ func TestFlag_value(t *testing.T) {
378378
},
379379
},
380380
},
381+
{
382+
name: "Flag target everyone",
383+
fields: fields{
384+
True: "true",
385+
False: "false",
386+
Default: "default",
387+
Percentage: 100,
388+
},
389+
args: args{
390+
flagName: "test-flag2",
391+
user: ffuser.NewUserBuilder("7e50ee61-06ad-4bb0-9034-38ad7cdea9f5").AddCustom("name", "john").Build(),
392+
},
393+
want: want{
394+
value: "true",
395+
resolutionDetails: flag.ResolutionDetails{
396+
Variant: flagv1.VariationTrue,
397+
Reason: flag.ReasonTargetingMatch,
398+
ErrorCode: "",
399+
},
400+
},
401+
},
381402
}
382403
for _, tt := range tests {
383404
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)