Skip to content

Commit 4e25a53

Browse files
author
Audun Blichfeldt Mo
committed
fixup! fix(project): support setting aggregation logic
Signed-off-by: Audun Blichfeldt Mo <audun.mo@remarkable.no>
1 parent 22b3ebf commit 4e25a53

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

project_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestProjectService_CreateWithCollection(t *testing.T) {
7070
name: "aggregate_collection_logic_direct_children_single_child",
7171
childProjects: []Project{
7272
{
73-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
73+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
7474
ParentRef: &ParentRef{
7575
UUID: collectionDirectChildrenProject.UUID,
7676
},
@@ -82,25 +82,25 @@ func TestProjectService_CreateWithCollection(t *testing.T) {
8282
name: "aggregate_collection_logic_direct_children_multiple_children",
8383
childProjects: []Project{
8484
{
85-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
85+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
8686
ParentRef: &ParentRef{
8787
UUID: collectionDirectChildrenProject.UUID,
8888
},
8989
},
9090
{
91-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
91+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
9292
ParentRef: &ParentRef{
9393
UUID: collectionDirectChildrenProject.UUID,
9494
},
9595
},
9696
{
97-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
97+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
9898
ParentRef: &ParentRef{
9999
UUID: collectionDirectChildrenProject.UUID,
100100
},
101101
},
102102
{
103-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
103+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
104104
ParentRef: &ParentRef{
105105
UUID: collectionDirectChildrenProject.UUID,
106106
},
@@ -112,7 +112,7 @@ func TestProjectService_CreateWithCollection(t *testing.T) {
112112
name: "aggregate_collection_logic_tags_single_child",
113113
childProjects: []Project{
114114
{
115-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
115+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
116116
Tags: []Tag{{Name: tag}},
117117
ParentRef: &ParentRef{
118118
UUID: collectionTags.UUID,
@@ -125,42 +125,42 @@ func TestProjectService_CreateWithCollection(t *testing.T) {
125125
name: "aggregate_collection_logic_tags_ multiple_children",
126126
childProjects: []Project{
127127
{
128-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
128+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
129129
Tags: []Tag{{Name: tag}},
130130
ParentRef: &ParentRef{
131131
UUID: collectionTags.UUID,
132132
},
133133
},
134134
{
135-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
135+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
136136
Tags: []Tag{{Name: tag}},
137137
ParentRef: &ParentRef{
138138
UUID: collectionTags.UUID,
139139
},
140140
},
141141
{
142-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
142+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
143143
Tags: []Tag{{Name: tag}},
144144
ParentRef: &ParentRef{
145145
UUID: collectionTags.UUID,
146146
},
147147
},
148148
{
149-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
149+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
150150
Tags: []Tag{{Name: tag}},
151151
ParentRef: &ParentRef{
152152
UUID: collectionTags.UUID,
153153
},
154154
},
155155
{
156-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
156+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
157157
Tags: []Tag{{Name: tag}},
158158
ParentRef: &ParentRef{
159159
UUID: collectionTags.UUID,
160160
},
161161
},
162162
{
163-
Name: fmt.Sprintf("child-%d", rand.Intn(100000)),
163+
Name: fmt.Sprintf("child-%d", rand.Intn(100000)), //nolint:gosec
164164
Tags: []Tag{{Name: tag}},
165165
ParentRef: &ParentRef{
166166
UUID: collectionTags.UUID,

0 commit comments

Comments
 (0)