jx/internal/source/dir_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

24 lines
413 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package source
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewDirSource(t *testing.T) {
s := NewDir()
assert.NotNil(t, s)
}
func TestExtractDirectory(t *testing.T) {
s := NewDir()
assert.NotNil(t, s)
document, err := s.ExtractDirectory(TempDir)
assert.Nil(t, err)
assert.NotNil(t, document)
}