Add test coverage to gitloader.

This commit is contained in:
jregan
2018-11-22 08:27:25 -08:00
parent d6910e9788
commit 4daa655516
5 changed files with 245 additions and 92 deletions

View File

@@ -25,7 +25,9 @@ import (
// NewLoader returns a Loader.
func NewLoader(root string, fSys fs.FileSystem) (ifc.Loader, error) {
if isRepoUrl(root) {
return newGithubLoader(root, fSys)
return newGitLoader(
root, fSys, []string{}, hashicorpGitCloner)
}
return newFileLoaderAt(fSys, root)
return newFileLoaderAt(
root, fSys, []string{}, hashicorpGitCloner)
}