@@ -7,7 +7,7 @@ package dependency_test
77import (
88 "testing"
99
10- "github.com/AlekSi/ pointer"
10+ "github.com/siderolabs/go- pointer"
1111 "github.com/stretchr/testify/assert"
1212
1313 "github.com/cosi-project/runtime/pkg/controller"
@@ -27,13 +27,13 @@ func TestLess(t *testing.T) {
2727 A : controller.Input {
2828 Namespace : "default" ,
2929 Type : "Config" ,
30- ID : pointer .ToString ("id" ),
30+ ID : pointer .To ("id" ),
3131 Kind : controller .InputStrong ,
3232 },
3333 B : controller.Input {
3434 Namespace : "default" ,
3535 Type : "Config" ,
36- ID : pointer .ToString ("id" ),
36+ ID : pointer .To ("id" ),
3737 Kind : controller .InputStrong ,
3838 },
3939 Expected : false ,
@@ -43,13 +43,13 @@ func TestLess(t *testing.T) {
4343 A : controller.Input {
4444 Namespace : "default" ,
4545 Type : "Config" ,
46- ID : pointer .ToString ("id" ),
46+ ID : pointer .To ("id" ),
4747 Kind : controller .InputStrong ,
4848 },
4949 B : controller.Input {
5050 Namespace : "default" ,
5151 Type : "Config" ,
52- ID : pointer .ToString ("jd" ),
52+ ID : pointer .To ("jd" ),
5353 Kind : controller .InputStrong ,
5454 },
5555 Expected : true ,
@@ -94,13 +94,13 @@ func TestEqual(t *testing.T) {
9494 A : controller.Input {
9595 Namespace : "default" ,
9696 Type : "Config" ,
97- ID : pointer .ToString ("id" ),
97+ ID : pointer .To ("id" ),
9898 Kind : controller .InputStrong ,
9999 },
100100 B : controller.Input {
101101 Namespace : "default" ,
102102 Type : "Config" ,
103- ID : pointer .ToString ("id" ),
103+ ID : pointer .To ("id" ),
104104 Kind : controller .InputStrong ,
105105 },
106106 Expected : true ,
@@ -110,13 +110,13 @@ func TestEqual(t *testing.T) {
110110 A : controller.Input {
111111 Namespace : "default" ,
112112 Type : "Config" ,
113- ID : pointer .ToString ("id" ),
113+ ID : pointer .To ("id" ),
114114 Kind : controller .InputStrong ,
115115 },
116116 B : controller.Input {
117117 Namespace : "default" ,
118118 Type : "Config" ,
119- ID : pointer .ToString ("jd" ),
119+ ID : pointer .To ("jd" ),
120120 Kind : controller .InputStrong ,
121121 },
122122 Expected : false ,
@@ -126,7 +126,7 @@ func TestEqual(t *testing.T) {
126126 A : controller.Input {
127127 Namespace : "default" ,
128128 Type : "Config" ,
129- ID : pointer .ToString ("id" ),
129+ ID : pointer .To ("id" ),
130130 Kind : controller .InputStrong ,
131131 },
132132 B : controller.Input {
@@ -174,13 +174,13 @@ func TestEqual(t *testing.T) {
174174 A : controller.Input {
175175 Namespace : "user" ,
176176 Type : "Config" ,
177- ID : pointer .ToString ("id" ),
177+ ID : pointer .To ("id" ),
178178 Kind : controller .InputStrong ,
179179 },
180180 B : controller.Input {
181181 Namespace : "default" ,
182182 Type : "Config" ,
183- ID : pointer .ToString ("id" ),
183+ ID : pointer .To ("id" ),
184184 Kind : controller .InputStrong ,
185185 },
186186 Expected : false ,
@@ -209,13 +209,13 @@ func TestEqualKeys(t *testing.T) {
209209 A : controller.Input {
210210 Namespace : "default" ,
211211 Type : "Config" ,
212- ID : pointer .ToString ("id" ),
212+ ID : pointer .To ("id" ),
213213 Kind : controller .InputStrong ,
214214 },
215215 B : controller.Input {
216216 Namespace : "default" ,
217217 Type : "Config" ,
218- ID : pointer .ToString ("id" ),
218+ ID : pointer .To ("id" ),
219219 Kind : controller .InputStrong ,
220220 },
221221 Expected : true ,
@@ -225,13 +225,13 @@ func TestEqualKeys(t *testing.T) {
225225 A : controller.Input {
226226 Namespace : "default" ,
227227 Type : "Config" ,
228- ID : pointer .ToString ("id" ),
228+ ID : pointer .To ("id" ),
229229 Kind : controller .InputWeak ,
230230 },
231231 B : controller.Input {
232232 Namespace : "default" ,
233233 Type : "Config" ,
234- ID : pointer .ToString ("id" ),
234+ ID : pointer .To ("id" ),
235235 Kind : controller .InputStrong ,
236236 },
237237 Expected : true ,
@@ -241,13 +241,13 @@ func TestEqualKeys(t *testing.T) {
241241 A : controller.Input {
242242 Namespace : "default" ,
243243 Type : "Config" ,
244- ID : pointer .ToString ("id" ),
244+ ID : pointer .To ("id" ),
245245 Kind : controller .InputStrong ,
246246 },
247247 B : controller.Input {
248248 Namespace : "default" ,
249249 Type : "Config" ,
250- ID : pointer .ToString ("jd" ),
250+ ID : pointer .To ("jd" ),
251251 Kind : controller .InputStrong ,
252252 },
253253 Expected : false ,
@@ -257,7 +257,7 @@ func TestEqualKeys(t *testing.T) {
257257 A : controller.Input {
258258 Namespace : "default" ,
259259 Type : "Config" ,
260- ID : pointer .ToString ("id" ),
260+ ID : pointer .To ("id" ),
261261 Kind : controller .InputStrong ,
262262 },
263263 B : controller.Input {
0 commit comments