github.com/gitbundle/modules@v0.0.0-20231025071548-85b91c5c3b01/uri/uri_test.go (about) 1 // Copyright 2023 The GitBundle Inc. All rights reserved. 2 // Copyright 2017 The Gitea Authors. All rights reserved. 3 // Use of this source code is governed by a MIT-style 4 // license that can be found in the LICENSE file. 5 6 package uri 7 8 import ( 9 "path/filepath" 10 "testing" 11 12 "github.com/stretchr/testify/assert" 13 ) 14 15 func TestReadURI(t *testing.T) { 16 p, err := filepath.Abs("./uri.go") 17 assert.NoError(t, err) 18 f, err := Open("file://" + p) 19 assert.NoError(t, err) 20 defer f.Close() 21 }