code.gitea.io/gitea@v1.19.3/modules/uri/uri_test.go (about)

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package uri
     5  
     6  import (
     7  	"path/filepath"
     8  	"testing"
     9  
    10  	"github.com/stretchr/testify/assert"
    11  )
    12  
    13  func TestReadURI(t *testing.T) {
    14  	p, err := filepath.Abs("./uri.go")
    15  	assert.NoError(t, err)
    16  	f, err := Open("file://" + p)
    17  	assert.NoError(t, err)
    18  	defer f.Close()
    19  }