Skip to content

Commit f1741a8

Browse files
committed
all: use codeberg.org/raw instead of github.com/raw
Signed-off-by: Sebastien Binet <binet@cern.ch>
1 parent f5a6a57 commit f1741a8

File tree

8 files changed

+68
-68
lines changed

8 files changed

+68
-68
lines changed

csvutil/csvdriver/driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func TestCreateRollback(t *testing.T) {
299299

300300
func TestOpenDriver(t *testing.T) {
301301
for _, fname := range []string{
302-
"https://github.com/go-hep/hep/raw/main/csvutil/csvdriver/testdata/types.csv",
302+
"https://codeberg.org/go-hep/hep/raw/branch/main/csvutil/csvdriver/testdata/types.csv",
303303
"testdata/types.csv",
304304
} {
305305
t.Run(fname, func(t *testing.T) {

fit/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Fit a gaussian
1010

11-
![h1d-gaussian-example](https://github.com/go-hep/hep/raw/main/fit/testdata/h1d-gauss-plot_golden.png)
11+
![h1d-gaussian-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/h1d-gauss-plot_golden.png)
1212

1313
[embedmd]:# (hist_example_test.go go /func ExampleH1D_gaussian/ /\n}/)
1414
```go
@@ -96,7 +96,7 @@ func ExampleH1D_gaussian() {
9696

9797
### Fit a gaussian
9898

99-
![func1d-gaussian-example](https://github.com/go-hep/hep/raw/main/fit/testdata/gauss-plot_golden.png)
99+
![func1d-gaussian-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/gauss-plot_golden.png)
100100

101101
[embedmd]:# (curve1d_example_test.go go /func ExampleCurve1D_gaussian/ /\n}/)
102102
```go
@@ -168,7 +168,7 @@ func ExampleCurve1D_gaussian() {
168168

169169
### Fit a powerlaw (with Y-errors)
170170

171-
![func1d-powerlaw-example](https://github.com/go-hep/hep/raw/main/fit/testdata/powerlaw-plot_golden.png)
171+
![func1d-powerlaw-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/powerlaw-plot_golden.png)
172172

173173
[embedmd]:# (curve1d_example_test.go go /func ExampleCurve1D_powerlaw/ /\n}/)
174174
```go
@@ -251,7 +251,7 @@ func ExampleCurve1D_powerlaw() {
251251

252252
### Fit an exponential
253253

254-
![func1d-exp-example](https://github.com/go-hep/hep/raw/main/fit/testdata/exp-plot_golden.png)
254+
![func1d-exp-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/exp-plot_golden.png)
255255

256256
[embedmd]:# (curve1d_example_test.go go /func ExampleCurve1D_exponential/ /\n}/)
257257
```go
@@ -325,7 +325,7 @@ func ExampleCurve1D_exponential() {
325325

326326
### Fit a polynomial
327327

328-
![func1d-poly-example](https://github.com/go-hep/hep/raw/main/fit/testdata/poly-plot_golden.png)
328+
![func1d-poly-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/poly-plot_golden.png)
329329

330330
[embedmd]:# (curve1d_example_test.go go /func ExampleCurve1D_poly/ /\n}/)
331331
```go
@@ -396,7 +396,7 @@ func ExampleCurve1D_poly() {
396396
## Fitting with more than one independent variable (x has more than one dimension)
397397
### Fit a flat plane
398398

399-
![2d-example](https://github.com/go-hep/hep/raw/main/fit/testdata/2d-plane-plot_golden.png)
399+
![2d-example](https://codeberg.org/go-hep/hep/raw/branch/main/fit/testdata/2d-plane-plot_golden.png)
400400

401401
[embedmd]:# (curve_nd_example_test.go go /func ExampleCurveND_plane/ /\n}/)
402402
```go

groot/rsrv/rsrv_test.go

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestOpenFile(t *testing.T) {
7575
uri string
7676
status int
7777
}{
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},
7979
{"root://ccxrootdgotest.in2p3.fr:9001/tmp/rootio/testdata/simple.root", http.StatusOK},
8080
{"file://" + local, http.StatusOK},
8181
} {
@@ -90,8 +90,8 @@ func TestDoubleOpenFile(t *testing.T) {
9090
ts := newTestServer()
9191
defer ts.Close()
9292

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)
9595
}
9696

9797
func testOpenFile(t *testing.T, ts *httptest.Server, uri string, status int) {
@@ -201,10 +201,10 @@ func TestCloseFile(t *testing.T) {
201201
ts := newTestServer()
202202
defer ts.Close()
203203

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")
208208
}
209209

210210
func testCloseFile(t *testing.T, ts *httptest.Server, uri string) {
@@ -238,14 +238,14 @@ func TestListFiles(t *testing.T) {
238238
ts := newTestServer()
239239
defer ts.Close()
240240

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)
243243
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},
246246
})
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")
249249
}
250250

251251
func testListFiles(t *testing.T, ts *httptest.Server, want []File) {
@@ -290,23 +290,23 @@ func TestDirent(t *testing.T) {
290290
ts := newTestServer()
291291
defer ts.Close()
292292

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")
295295

296296
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",
298298
Dir: "/",
299299
Recursive: false,
300300
}, []string{
301301
"/",
302302
"/tree",
303303
})
304304

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")
307307

308308
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",
310310
Dir: "/",
311311
Recursive: false,
312312
}, []string{
@@ -316,7 +316,7 @@ func TestDirent(t *testing.T) {
316316
"/dir3",
317317
})
318318
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",
320320
Dir: "/",
321321
Recursive: true,
322322
}, []string{
@@ -328,15 +328,15 @@ func TestDirent(t *testing.T) {
328328
"/dir3",
329329
})
330330
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",
332332
Dir: "/dir1",
333333
Recursive: false,
334334
}, []string{
335335
"/dir1",
336336
"/dir1/dir11",
337337
})
338338
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",
340340
Dir: "/dir1",
341341
Recursive: true,
342342
}, []string{
@@ -394,7 +394,7 @@ func TestTree(t *testing.T) {
394394
ts := newTestServer()
395395
defer ts.Close()
396396

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"
398398
testOpenFile(t, ts, uri, http.StatusOK)
399399
defer testCloseFile(t, ts, uri)
400400

@@ -505,10 +505,10 @@ func TestPlotH1(t *testing.T) {
505505
ts := newTestServer()
506506
defer ts.Close()
507507

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")
510510

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"
512512
testOpenFile(t, ts, uri, http.StatusOK)
513513
defer testCloseFile(t, ts, uri)
514514

@@ -525,7 +525,7 @@ func TestPlotH1(t *testing.T) {
525525
},
526526
{
527527
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",
529529
Dir: "/dir1/dir11",
530530
Obj: "h1",
531531
},
@@ -550,7 +550,7 @@ func TestPlotH1(t *testing.T) {
550550
},
551551
{
552552
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",
554554
Dir: "/dir1/dir11",
555555
Obj: "h1",
556556
Options: PlotOptions{
@@ -561,7 +561,7 @@ func TestPlotH1(t *testing.T) {
561561
},
562562
{
563563
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",
565565
Dir: "/dir1/dir11",
566566
Obj: "h1",
567567
Options: PlotOptions{
@@ -641,7 +641,7 @@ func TestPlotH2(t *testing.T) {
641641
ts := newTestServer()
642642
defer ts.Close()
643643

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"
645645
testOpenFile(t, ts, uri, http.StatusOK)
646646
defer testCloseFile(t, ts, uri)
647647

@@ -774,7 +774,7 @@ func TestPlotS2(t *testing.T) {
774774
ts := newTestServer()
775775
defer ts.Close()
776776

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"
778778
testOpenFile(t, ts, uri, http.StatusOK)
779779
defer testCloseFile(t, ts, uri)
780780

@@ -910,7 +910,7 @@ func TestPlotTree(t *testing.T) {
910910
ts := newTestServer()
911911
defer ts.Close()
912912

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"
914914
testOpenFile(t, ts, uri, http.StatusOK)
915915
defer testCloseFile(t, ts, uri)
916916

groot/rtree/tree_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func TestSimpleTree(t *testing.T) {
346346
func TestSimpleTreeOverHTTP(t *testing.T) {
347347
t.Parallel()
348348

349-
f, err := riofs.Open("https://github.com/go-hep/hep/raw/main/groot/testdata/simple.root")
349+
f, err := riofs.Open("https://codeberg.org/go-hep/hep/raw/branch/main/groot/testdata/simple.root")
350350
if err != nil {
351351
t.Fatal(err)
352352
}

hbook/ntup/ntcsv/example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ func ExampleOpen() {
5353

5454
func ExampleOpen_fromRemote() {
5555
// Open a new n-tuple pointing at a remote CSV file
56-
// "https://github.com/go-hep/hep/raw/main/hbook/ntup/ntcsv/testdata/simple.csv"
56+
// "https://codeberg.org/go-hep/hep/raw/branch/main/hbook/ntup/ntcsv/testdata/simple.csv"
5757
// whose field separator is ';'.
5858
// We rename the columns v1, v2 and v3.
5959
nt, err := ntcsv.Open(
60-
"https://github.com/go-hep/hep/raw/main/hbook/ntup/ntcsv/testdata/simple.csv",
60+
"https://codeberg.org/go-hep/hep/raw/branch/main/hbook/ntup/ntcsv/testdata/simple.csv",
6161
ntcsv.Comma(';'),
6262
ntcsv.Columns("v1", "v2", "v3"),
6363
)

hbook/ntup/ntcsv/ntcsv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func TestOpen(t *testing.T) {
7878
ntcsv.Columns("v1", "v2", "v3"),
7979
},
8080
},
81-
{"https://github.com/go-hep/hep/raw/main/hbook/ntup/ntcsv/testdata/simple-with-header.csv", `i64, f64, str`,
81+
{"https://codeberg.org/go-hep/hep/raw/branch/main/hbook/ntup/ntcsv/testdata/simple-with-header.csv", `i64, f64, str`,
8282
[]ntcsv.Option{
8383
ntcsv.Header(),
8484
ntcsv.Columns("i64", "f64", "str"),

0 commit comments

Comments
 (0)