You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uri_test.go 350B

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