@@ -75,7 +75,7 @@ func TestOpenFile(t *testing.T) {
75
75
uri string
76
76
status int
77
77
}{
78
- {"https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , http .StatusOK },
78
+ {"https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , http .StatusOK },
79
79
{"root://ccxrootdgotest.in2p3.fr:9001/tmp/rootio/testdata/simple.root" , http .StatusOK },
80
80
{"file://" + local , http .StatusOK },
81
81
} {
@@ -90,8 +90,8 @@ func TestDoubleOpenFile(t *testing.T) {
90
90
ts := newTestServer ()
91
91
defer ts .Close ()
92
92
93
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , 0 )
94
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , http .StatusConflict )
93
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , 0 )
94
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , http .StatusConflict )
95
95
}
96
96
97
97
func testOpenFile (t * testing.T , ts * httptest.Server , uri string , status int ) {
@@ -201,10 +201,10 @@ func TestCloseFile(t *testing.T) {
201
201
ts := newTestServer ()
202
202
defer ts .Close ()
203
203
204
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , 0 )
205
- testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" )
206
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , http .StatusOK )
207
- testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" )
204
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , 0 )
205
+ testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" )
206
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , http .StatusOK )
207
+ testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" )
208
208
}
209
209
210
210
func testCloseFile (t * testing.T , ts * httptest.Server , uri string ) {
@@ -238,14 +238,14 @@ func TestListFiles(t *testing.T) {
238
238
ts := newTestServer ()
239
239
defer ts .Close ()
240
240
241
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , 0 )
242
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
241
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , 0 )
242
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
243
243
testListFiles (t , ts , []File {
244
- {"https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , 60600 },
245
- {"https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" , 61400 },
244
+ {"https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , 60600 },
245
+ {"https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" , 61400 },
246
246
})
247
- testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" )
248
- testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" )
247
+ testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" )
248
+ testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" )
249
249
}
250
250
251
251
func testListFiles (t * testing.T , ts * httptest.Server , want []File ) {
@@ -290,23 +290,23 @@ func TestDirent(t *testing.T) {
290
290
ts := newTestServer ()
291
291
defer ts .Close ()
292
292
293
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" , http .StatusOK )
294
- defer testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" )
293
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" , http .StatusOK )
294
+ defer testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" )
295
295
296
296
testDirent (t , ts , DirentRequest {
297
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/simple.root" ,
297
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/simple.root" ,
298
298
Dir : "/" ,
299
299
Recursive : false ,
300
300
}, []string {
301
301
"/" ,
302
302
"/tree" ,
303
303
})
304
304
305
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
306
- defer testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" )
305
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
306
+ defer testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" )
307
307
308
308
testDirent (t , ts , DirentRequest {
309
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
309
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
310
310
Dir : "/" ,
311
311
Recursive : false ,
312
312
}, []string {
@@ -316,7 +316,7 @@ func TestDirent(t *testing.T) {
316
316
"/dir3" ,
317
317
})
318
318
testDirent (t , ts , DirentRequest {
319
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
319
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
320
320
Dir : "/" ,
321
321
Recursive : true ,
322
322
}, []string {
@@ -328,15 +328,15 @@ func TestDirent(t *testing.T) {
328
328
"/dir3" ,
329
329
})
330
330
testDirent (t , ts , DirentRequest {
331
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
331
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
332
332
Dir : "/dir1" ,
333
333
Recursive : false ,
334
334
}, []string {
335
335
"/dir1" ,
336
336
"/dir1/dir11" ,
337
337
})
338
338
testDirent (t , ts , DirentRequest {
339
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
339
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
340
340
Dir : "/dir1" ,
341
341
Recursive : true ,
342
342
}, []string {
@@ -394,7 +394,7 @@ func TestTree(t *testing.T) {
394
394
ts := newTestServer ()
395
395
defer ts .Close ()
396
396
397
- const uri = "https://github.com /go-hep/hep/raw/main/groot/testdata/small-flat-tree.root"
397
+ const uri = "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/small-flat-tree.root"
398
398
testOpenFile (t , ts , uri , http .StatusOK )
399
399
defer testCloseFile (t , ts , uri )
400
400
@@ -505,10 +505,10 @@ func TestPlotH1(t *testing.T) {
505
505
ts := newTestServer ()
506
506
defer ts .Close ()
507
507
508
- testOpenFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
509
- defer testCloseFile (t , ts , "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" )
508
+ testOpenFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" , http .StatusOK )
509
+ defer testCloseFile (t , ts , "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" )
510
510
511
- const uri = "https://github.com /go-hep/hep/raw/main/hbook/rootcnv/testdata/gauss-h1.root"
511
+ const uri = "https://codeberg.org /go-hep/hep/raw/branch /main/hbook/rootcnv/testdata/gauss-h1.root"
512
512
testOpenFile (t , ts , uri , http .StatusOK )
513
513
defer testCloseFile (t , ts , uri )
514
514
@@ -525,7 +525,7 @@ func TestPlotH1(t *testing.T) {
525
525
},
526
526
{
527
527
req : PlotH1Request {
528
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
528
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
529
529
Dir : "/dir1/dir11" ,
530
530
Obj : "h1" ,
531
531
},
@@ -550,7 +550,7 @@ func TestPlotH1(t *testing.T) {
550
550
},
551
551
{
552
552
req : PlotH1Request {
553
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
553
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
554
554
Dir : "/dir1/dir11" ,
555
555
Obj : "h1" ,
556
556
Options : PlotOptions {
@@ -561,7 +561,7 @@ func TestPlotH1(t *testing.T) {
561
561
},
562
562
{
563
563
req : PlotH1Request {
564
- URI : "https://github.com /go-hep/hep/raw/main/groot/testdata/dirs-6.14.00.root" ,
564
+ URI : "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/dirs-6.14.00.root" ,
565
565
Dir : "/dir1/dir11" ,
566
566
Obj : "h1" ,
567
567
Options : PlotOptions {
@@ -641,7 +641,7 @@ func TestPlotH2(t *testing.T) {
641
641
ts := newTestServer ()
642
642
defer ts .Close ()
643
643
644
- const uri = "https://github.com /go-hep/hep/raw/main/hbook/rootcnv/testdata/gauss-h2.root"
644
+ const uri = "https://codeberg.org /go-hep/hep/raw/branch /main/hbook/rootcnv/testdata/gauss-h2.root"
645
645
testOpenFile (t , ts , uri , http .StatusOK )
646
646
defer testCloseFile (t , ts , uri )
647
647
@@ -774,7 +774,7 @@ func TestPlotS2(t *testing.T) {
774
774
ts := newTestServer ()
775
775
defer ts .Close ()
776
776
777
- const uri = "https://github.com /go-hep/hep/raw/main/groot/testdata/graphs.root"
777
+ const uri = "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/graphs.root"
778
778
testOpenFile (t , ts , uri , http .StatusOK )
779
779
defer testCloseFile (t , ts , uri )
780
780
@@ -910,7 +910,7 @@ func TestPlotTree(t *testing.T) {
910
910
ts := newTestServer ()
911
911
defer ts .Close ()
912
912
913
- const uri = "https://github.com /go-hep/hep/raw/main/groot/testdata/small-flat-tree.root"
913
+ const uri = "https://codeberg.org /go-hep/hep/raw/branch /main/groot/testdata/small-flat-tree.root"
914
914
testOpenFile (t , ts , uri , http .StatusOK )
915
915
defer testCloseFile (t , ts , uri )
916
916
0 commit comments