Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jfa-go/src/commit/f37edcb7513f2697cb07661423f8d33b7901b614/linecache/linecache_test.go
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
package linecache
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func Test(t *testing.T) {
|
|
wr := NewLineCache(10)
|
|
for i := 10; i < 50; i++ {
|
|
fmt.Fprintln(wr, i)
|
|
fmt.Print(strings.ReplaceAll(wr.String(), "\n", " "), "\n")
|
|
time.Sleep(time.Second)
|
|
}
|
|
}
|