Skip to content

Commit 379e9f3

Browse files
committed
✅ Fix tests for bool pointer
1 parent 0264b55 commit 379e9f3

File tree

27 files changed

+91
-71
lines changed

27 files changed

+91
-71
lines changed

cmd/activity/activity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const (
2222

2323
var (
2424
channelId string
25-
home = utils.BoolPtr("")
25+
home = utils.BoolPtr("false")
2626
maxResults int64
27-
mine = utils.BoolPtr("")
27+
mine = utils.BoolPtr("false")
2828
publishedAfter string
2929
publishedBefore string
3030
regionCode string

cmd/caption/caption.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ var (
1111
id string
1212
file string
1313
audioTrackType string
14-
isAutoSynced = utils.BoolPtr("")
15-
isCC = utils.BoolPtr("")
16-
isDraft = utils.BoolPtr("")
17-
isEasyReader = utils.BoolPtr("")
18-
isLarge = utils.BoolPtr("")
14+
isAutoSynced = utils.BoolPtr("false")
15+
isCC = utils.BoolPtr("false")
16+
isDraft = utils.BoolPtr("false")
17+
isEasyReader = utils.BoolPtr("false")
18+
isLarge = utils.BoolPtr("false")
1919
language string
2020
name string
2121
trackKind string

cmd/channel/channel.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ var (
1414
forUsername string
1515
hl string
1616
id string
17-
managedByMe = utils.BoolPtr("")
17+
managedByMe = utils.BoolPtr("false")
1818
maxResults int64
19-
mine = utils.BoolPtr("")
20-
mySubscribers = utils.BoolPtr("")
19+
mine = utils.BoolPtr("false")
20+
mySubscribers = utils.BoolPtr("false")
2121
onBehalfOfContentOwner string
2222

2323
country string

cmd/channelSection/channelSection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var (
1010
id string
1111
channelId string
1212
hl string
13-
mine = utils.BoolPtr("")
13+
mine = utils.BoolPtr("false")
1414
onBehalfOfContentOwner string
1515
parts []string
1616
output string

cmd/comment/comment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
var (
1010
ids []string
1111
authorChannelId string
12-
canRate = utils.BoolPtr("")
12+
canRate = utils.BoolPtr("false")
1313
channelId string
1414
maxResults int64
1515
parentId string
1616
textFormat string
1717
textOriginal string
1818
moderationStatus string
19-
banAuthor = utils.BoolPtr("")
19+
banAuthor = utils.BoolPtr("false")
2020
videoId string
2121
viewerRating string
2222
parts []string

cmd/playlist/playlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var (
1313
description string
1414
hl string
1515
maxResults int64
16-
mine = utils.BoolPtr("")
16+
mine = utils.BoolPtr("false")
1717
tags []string
1818
language string
1919
channelId string

cmd/search/search.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ var (
1010
channelId string
1111
channelType string
1212
eventType string
13-
forContentOwner = utils.BoolPtr("")
14-
forDeveloper = utils.BoolPtr("")
15-
forMine = utils.BoolPtr("")
13+
forContentOwner = utils.BoolPtr("false")
14+
forDeveloper = utils.BoolPtr("false")
15+
forMine = utils.BoolPtr("false")
1616
location string
1717
locationRadius string
1818
maxResults int64

cmd/subscription/subscription.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ var (
1313
channelId string
1414
forChannelId string
1515
maxResults int64
16-
mine = utils.BoolPtr("")
17-
myRecentSubscribers = utils.BoolPtr("")
18-
mySubscribers = utils.BoolPtr("")
16+
mine = utils.BoolPtr("false")
17+
myRecentSubscribers = utils.BoolPtr("false")
18+
mySubscribers = utils.BoolPtr("false")
1919
onBehalfOfContentOwner string
2020
onBehalfOfContentOwnerChannel string
2121
order string

cmd/video/video.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
var (
1212
id string
13-
autoLevels = utils.BoolPtr("")
13+
autoLevels = utils.BoolPtr("false")
1414
file string
1515
title string
1616
description string
@@ -27,21 +27,21 @@ var (
2727
playListId string
2828
categoryId string
2929
privacy string
30-
forKids = utils.BoolPtr("")
31-
embeddable = utils.BoolPtr("")
30+
forKids = utils.BoolPtr("false")
31+
embeddable = utils.BoolPtr("false")
3232
output string
3333
parts []string
3434
publishAt string
3535
regionCode string
3636
reasonId string
3737
secondaryReasonId string
38-
stabilize = utils.BoolPtr("")
38+
stabilize = utils.BoolPtr("false")
3939
maxHeight int64
4040
maxWidth int64
4141
maxResults int64
4242

43-
notifySubscribers = utils.BoolPtr("")
44-
publicStatsViewable = utils.BoolPtr("")
43+
notifySubscribers = utils.BoolPtr("false")
44+
publicStatsViewable = utils.BoolPtr("false")
4545
onBehalfOfContentOwner string
4646
onBehalfOfContentOwnerChannel string
4747
)

pkg/activity/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ go_test(
1616
name = "activity_test",
1717
srcs = ["activity_test.go"],
1818
embed = [":activity"],
19+
deps = ["//pkg/utils"],
1920
)

0 commit comments

Comments
 (0)