starting config parsing

This commit is contained in:
Tyrel Souza 2019-05-14 23:20:16 -04:00 committed by Tyrel Souza
parent 3b3f0f5621
commit efc5a3267f
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
8 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
# Install
Using go >= 1.12
Using go >= 1.12 so we have go modules.
```
$ go get
$ go build
$ go test
$ ./tideliftcli scan ~/test
test/fixtures/yarn.lock, test/fixtures/Gemfile, test/fixtures/subdir/requirements.txt, test/fixtures/a/b/c/d/e/f/g/requirements.txt
$ ./tideliftcli scan ~/test/good_fixtures
yarn.lock, Gemfile, subdir/requirements.txt, a/b/c/d/e/f/g/requirements.txt
```

View File

@ -10,7 +10,7 @@ import (
func TestGetListOfGlobMatches(t *testing.T) {
//assert getManifestMatches gets all requirements.txt
os.Chdir("test/fixtures")
os.Chdir("test/good_config")
expected := []string{
"subdir/requirements.txt",
"a/b/c/d/e/f/g/requirements.txt",
@ -29,7 +29,7 @@ func TestGetListOfManifestFilenames(t *testing.T) {
"a/b/c/d/e/f/g/requirements.txt",
"subdir/requirements.txt",
}
got := getListOfManifestFilenames("test/fixtures")
got := getListOfManifestFilenames("test/good_config")
sort.Strings(expected)
sort.Strings(got)