99 opt "github.com/ipfs/interface-go-ipfs-core/options"
1010)
1111
12- func (tp * provider ) TestKey (t * testing.T ) {
12+ func (tp * TestSuite ) TestKey (t * testing.T ) {
1313 tp .hasApi (t , func (api iface.CoreAPI ) error {
1414 if api .Key () == nil {
1515 return apiNotImplemented
@@ -35,7 +35,7 @@ func (tp *provider) TestKey(t *testing.T) {
3535 t .Run ("TestRemove" , tp .TestRemove )
3636}
3737
38- func (tp * provider ) TestListSelf (t * testing.T ) {
38+ func (tp * TestSuite ) TestListSelf (t * testing.T ) {
3939 ctx , cancel := context .WithCancel (context .Background ())
4040 defer cancel ()
4141 api , err := tp .makeAPI (ctx )
@@ -69,7 +69,7 @@ func (tp *provider) TestListSelf(t *testing.T) {
6969 }
7070}
7171
72- func (tp * provider ) TestRenameSelf (t * testing.T ) {
72+ func (tp * TestSuite ) TestRenameSelf (t * testing.T ) {
7373 ctx , cancel := context .WithCancel (context .Background ())
7474 defer cancel ()
7575 api , err := tp .makeAPI (ctx )
@@ -97,7 +97,7 @@ func (tp *provider) TestRenameSelf(t *testing.T) {
9797 }
9898}
9999
100- func (tp * provider ) TestRemoveSelf (t * testing.T ) {
100+ func (tp * TestSuite ) TestRemoveSelf (t * testing.T ) {
101101 ctx , cancel := context .WithCancel (context .Background ())
102102 defer cancel ()
103103 api , err := tp .makeAPI (ctx )
@@ -116,7 +116,7 @@ func (tp *provider) TestRemoveSelf(t *testing.T) {
116116 }
117117}
118118
119- func (tp * provider ) TestGenerate (t * testing.T ) {
119+ func (tp * TestSuite ) TestGenerate (t * testing.T ) {
120120 ctx , cancel := context .WithCancel (context .Background ())
121121 defer cancel ()
122122 api , err := tp .makeAPI (ctx )
@@ -139,7 +139,7 @@ func (tp *provider) TestGenerate(t *testing.T) {
139139 }
140140}
141141
142- func (tp * provider ) TestGenerateSize (t * testing.T ) {
142+ func (tp * TestSuite ) TestGenerateSize (t * testing.T ) {
143143 ctx , cancel := context .WithCancel (context .Background ())
144144 defer cancel ()
145145 api , err := tp .makeAPI (ctx )
@@ -162,7 +162,7 @@ func (tp *provider) TestGenerateSize(t *testing.T) {
162162 }
163163}
164164
165- func (tp * provider ) TestGenerateType (t * testing.T ) {
165+ func (tp * TestSuite ) TestGenerateType (t * testing.T ) {
166166 ctx , cancel := context .WithCancel (context .Background ())
167167 defer cancel ()
168168 t .Skip ("disabled until libp2p/specs#111 is fixed" )
@@ -188,7 +188,7 @@ func (tp *provider) TestGenerateType(t *testing.T) {
188188 }
189189}
190190
191- func (tp * provider ) TestGenerateExisting (t * testing.T ) {
191+ func (tp * TestSuite ) TestGenerateExisting (t * testing.T ) {
192192 ctx , cancel := context .WithCancel (context .Background ())
193193 defer cancel ()
194194 api , err := tp .makeAPI (ctx )
@@ -221,7 +221,7 @@ func (tp *provider) TestGenerateExisting(t *testing.T) {
221221 }
222222}
223223
224- func (tp * provider ) TestList (t * testing.T ) {
224+ func (tp * TestSuite ) TestList (t * testing.T ) {
225225 ctx , cancel := context .WithCancel (context .Background ())
226226 defer cancel ()
227227 api , err := tp .makeAPI (ctx )
@@ -267,7 +267,7 @@ func (tp *provider) TestList(t *testing.T) {
267267 }
268268}
269269
270- func (tp * provider ) TestRename (t * testing.T ) {
270+ func (tp * TestSuite ) TestRename (t * testing.T ) {
271271 ctx , cancel := context .WithCancel (context .Background ())
272272 defer cancel ()
273273 api , err := tp .makeAPI (ctx )
@@ -296,7 +296,7 @@ func (tp *provider) TestRename(t *testing.T) {
296296 }
297297}
298298
299- func (tp * provider ) TestRenameToSelf (t * testing.T ) {
299+ func (tp * TestSuite ) TestRenameToSelf (t * testing.T ) {
300300 ctx , cancel := context .WithCancel (context .Background ())
301301 defer cancel ()
302302 api , err := tp .makeAPI (ctx )
@@ -320,7 +320,7 @@ func (tp *provider) TestRenameToSelf(t *testing.T) {
320320 }
321321}
322322
323- func (tp * provider ) TestRenameToSelfForce (t * testing.T ) {
323+ func (tp * TestSuite ) TestRenameToSelfForce (t * testing.T ) {
324324 ctx , cancel := context .WithCancel (context .Background ())
325325 defer cancel ()
326326 api , err := tp .makeAPI (ctx )
@@ -344,7 +344,7 @@ func (tp *provider) TestRenameToSelfForce(t *testing.T) {
344344 }
345345}
346346
347- func (tp * provider ) TestRenameOverwriteNoForce (t * testing.T ) {
347+ func (tp * TestSuite ) TestRenameOverwriteNoForce (t * testing.T ) {
348348 ctx , cancel := context .WithCancel (context .Background ())
349349 defer cancel ()
350350 api , err := tp .makeAPI (ctx )
@@ -374,7 +374,7 @@ func (tp *provider) TestRenameOverwriteNoForce(t *testing.T) {
374374 }
375375}
376376
377- func (tp * provider ) TestRenameOverwrite (t * testing.T ) {
377+ func (tp * TestSuite ) TestRenameOverwrite (t * testing.T ) {
378378 ctx , cancel := context .WithCancel (context .Background ())
379379 defer cancel ()
380380 api , err := tp .makeAPI (ctx )
@@ -413,7 +413,7 @@ func (tp *provider) TestRenameOverwrite(t *testing.T) {
413413 }
414414}
415415
416- func (tp * provider ) TestRenameSameNameNoForce (t * testing.T ) {
416+ func (tp * TestSuite ) TestRenameSameNameNoForce (t * testing.T ) {
417417 ctx , cancel := context .WithCancel (context .Background ())
418418 defer cancel ()
419419 api , err := tp .makeAPI (ctx )
@@ -442,7 +442,7 @@ func (tp *provider) TestRenameSameNameNoForce(t *testing.T) {
442442 }
443443}
444444
445- func (tp * provider ) TestRenameSameName (t * testing.T ) {
445+ func (tp * TestSuite ) TestRenameSameName (t * testing.T ) {
446446 ctx , cancel := context .WithCancel (context .Background ())
447447 defer cancel ()
448448 api , err := tp .makeAPI (ctx )
@@ -471,7 +471,7 @@ func (tp *provider) TestRenameSameName(t *testing.T) {
471471 }
472472}
473473
474- func (tp * provider ) TestRemove (t * testing.T ) {
474+ func (tp * TestSuite ) TestRemove (t * testing.T ) {
475475 ctx , cancel := context .WithCancel (context .Background ())
476476 defer cancel ()
477477 api , err := tp .makeAPI (ctx )
0 commit comments