9
9
opt "github.com/ipfs/interface-go-ipfs-core/options"
10
10
)
11
11
12
- func (tp * provider ) TestKey (t * testing.T ) {
12
+ func (tp * TestSuite ) TestKey (t * testing.T ) {
13
13
tp .hasApi (t , func (api iface.CoreAPI ) error {
14
14
if api .Key () == nil {
15
15
return apiNotImplemented
@@ -35,7 +35,7 @@ func (tp *provider) TestKey(t *testing.T) {
35
35
t .Run ("TestRemove" , tp .TestRemove )
36
36
}
37
37
38
- func (tp * provider ) TestListSelf (t * testing.T ) {
38
+ func (tp * TestSuite ) TestListSelf (t * testing.T ) {
39
39
ctx , cancel := context .WithCancel (context .Background ())
40
40
defer cancel ()
41
41
api , err := tp .makeAPI (ctx )
@@ -69,7 +69,7 @@ func (tp *provider) TestListSelf(t *testing.T) {
69
69
}
70
70
}
71
71
72
- func (tp * provider ) TestRenameSelf (t * testing.T ) {
72
+ func (tp * TestSuite ) TestRenameSelf (t * testing.T ) {
73
73
ctx , cancel := context .WithCancel (context .Background ())
74
74
defer cancel ()
75
75
api , err := tp .makeAPI (ctx )
@@ -97,7 +97,7 @@ func (tp *provider) TestRenameSelf(t *testing.T) {
97
97
}
98
98
}
99
99
100
- func (tp * provider ) TestRemoveSelf (t * testing.T ) {
100
+ func (tp * TestSuite ) TestRemoveSelf (t * testing.T ) {
101
101
ctx , cancel := context .WithCancel (context .Background ())
102
102
defer cancel ()
103
103
api , err := tp .makeAPI (ctx )
@@ -116,7 +116,7 @@ func (tp *provider) TestRemoveSelf(t *testing.T) {
116
116
}
117
117
}
118
118
119
- func (tp * provider ) TestGenerate (t * testing.T ) {
119
+ func (tp * TestSuite ) TestGenerate (t * testing.T ) {
120
120
ctx , cancel := context .WithCancel (context .Background ())
121
121
defer cancel ()
122
122
api , err := tp .makeAPI (ctx )
@@ -139,7 +139,7 @@ func (tp *provider) TestGenerate(t *testing.T) {
139
139
}
140
140
}
141
141
142
- func (tp * provider ) TestGenerateSize (t * testing.T ) {
142
+ func (tp * TestSuite ) TestGenerateSize (t * testing.T ) {
143
143
ctx , cancel := context .WithCancel (context .Background ())
144
144
defer cancel ()
145
145
api , err := tp .makeAPI (ctx )
@@ -162,7 +162,7 @@ func (tp *provider) TestGenerateSize(t *testing.T) {
162
162
}
163
163
}
164
164
165
- func (tp * provider ) TestGenerateType (t * testing.T ) {
165
+ func (tp * TestSuite ) TestGenerateType (t * testing.T ) {
166
166
ctx , cancel := context .WithCancel (context .Background ())
167
167
defer cancel ()
168
168
t .Skip ("disabled until libp2p/specs#111 is fixed" )
@@ -188,7 +188,7 @@ func (tp *provider) TestGenerateType(t *testing.T) {
188
188
}
189
189
}
190
190
191
- func (tp * provider ) TestGenerateExisting (t * testing.T ) {
191
+ func (tp * TestSuite ) TestGenerateExisting (t * testing.T ) {
192
192
ctx , cancel := context .WithCancel (context .Background ())
193
193
defer cancel ()
194
194
api , err := tp .makeAPI (ctx )
@@ -221,7 +221,7 @@ func (tp *provider) TestGenerateExisting(t *testing.T) {
221
221
}
222
222
}
223
223
224
- func (tp * provider ) TestList (t * testing.T ) {
224
+ func (tp * TestSuite ) TestList (t * testing.T ) {
225
225
ctx , cancel := context .WithCancel (context .Background ())
226
226
defer cancel ()
227
227
api , err := tp .makeAPI (ctx )
@@ -267,7 +267,7 @@ func (tp *provider) TestList(t *testing.T) {
267
267
}
268
268
}
269
269
270
- func (tp * provider ) TestRename (t * testing.T ) {
270
+ func (tp * TestSuite ) TestRename (t * testing.T ) {
271
271
ctx , cancel := context .WithCancel (context .Background ())
272
272
defer cancel ()
273
273
api , err := tp .makeAPI (ctx )
@@ -296,7 +296,7 @@ func (tp *provider) TestRename(t *testing.T) {
296
296
}
297
297
}
298
298
299
- func (tp * provider ) TestRenameToSelf (t * testing.T ) {
299
+ func (tp * TestSuite ) TestRenameToSelf (t * testing.T ) {
300
300
ctx , cancel := context .WithCancel (context .Background ())
301
301
defer cancel ()
302
302
api , err := tp .makeAPI (ctx )
@@ -320,7 +320,7 @@ func (tp *provider) TestRenameToSelf(t *testing.T) {
320
320
}
321
321
}
322
322
323
- func (tp * provider ) TestRenameToSelfForce (t * testing.T ) {
323
+ func (tp * TestSuite ) TestRenameToSelfForce (t * testing.T ) {
324
324
ctx , cancel := context .WithCancel (context .Background ())
325
325
defer cancel ()
326
326
api , err := tp .makeAPI (ctx )
@@ -344,7 +344,7 @@ func (tp *provider) TestRenameToSelfForce(t *testing.T) {
344
344
}
345
345
}
346
346
347
- func (tp * provider ) TestRenameOverwriteNoForce (t * testing.T ) {
347
+ func (tp * TestSuite ) TestRenameOverwriteNoForce (t * testing.T ) {
348
348
ctx , cancel := context .WithCancel (context .Background ())
349
349
defer cancel ()
350
350
api , err := tp .makeAPI (ctx )
@@ -374,7 +374,7 @@ func (tp *provider) TestRenameOverwriteNoForce(t *testing.T) {
374
374
}
375
375
}
376
376
377
- func (tp * provider ) TestRenameOverwrite (t * testing.T ) {
377
+ func (tp * TestSuite ) TestRenameOverwrite (t * testing.T ) {
378
378
ctx , cancel := context .WithCancel (context .Background ())
379
379
defer cancel ()
380
380
api , err := tp .makeAPI (ctx )
@@ -413,7 +413,7 @@ func (tp *provider) TestRenameOverwrite(t *testing.T) {
413
413
}
414
414
}
415
415
416
- func (tp * provider ) TestRenameSameNameNoForce (t * testing.T ) {
416
+ func (tp * TestSuite ) TestRenameSameNameNoForce (t * testing.T ) {
417
417
ctx , cancel := context .WithCancel (context .Background ())
418
418
defer cancel ()
419
419
api , err := tp .makeAPI (ctx )
@@ -442,7 +442,7 @@ func (tp *provider) TestRenameSameNameNoForce(t *testing.T) {
442
442
}
443
443
}
444
444
445
- func (tp * provider ) TestRenameSameName (t * testing.T ) {
445
+ func (tp * TestSuite ) TestRenameSameName (t * testing.T ) {
446
446
ctx , cancel := context .WithCancel (context .Background ())
447
447
defer cancel ()
448
448
api , err := tp .makeAPI (ctx )
@@ -471,7 +471,7 @@ func (tp *provider) TestRenameSameName(t *testing.T) {
471
471
}
472
472
}
473
473
474
- func (tp * provider ) TestRemove (t * testing.T ) {
474
+ func (tp * TestSuite ) TestRemove (t * testing.T ) {
475
475
ctx , cancel := context .WithCancel (context .Background ())
476
476
defer cancel ()
477
477
api , err := tp .makeAPI (ctx )
0 commit comments