jx/internal/source/docsource_test.go
Matthew Rich 976f654c60
Some checks failed
Lint / golangci-lint (push) Failing after 9m47s
Declarative Tests / test (push) Failing after 10s
handle numeric user ids
2024-04-17 17:07:12 -07:00

31 lines
614 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package source
import (
_ "context"
_ "fmt"
"github.com/stretchr/testify/assert"
_ "log"
"testing"
)
func TestNewDocSource(t *testing.T) {
resourceUri := "tar://foo"
testFile := NewDocSource(resourceUri)
assert.NotNil(t, testFile)
}
/*
func TestResolveId(t *testing.T) {
testFile := NewResource("file://../../README.md")
assert.NotNil(t, testFile)
absolutePath, e := filepath.Abs("../../README.md")
assert.Nil(t, e)
testFile.ResolveId(context.Background())
assert.Equal(t, absolutePath, testFile.(*File).Path)
}
*/