Skip to content

Commit

Permalink
Add fixtures for resolver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tryzniak committed Dec 1, 2017
1 parent 704e15c commit 8bd2621
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions resolver/fixtures/bar
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(info bar)
1 change: 1 addition & 0 deletions resolver/fixtures/baz/stuff.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(info baz)
1 change: 0 additions & 1 deletion resolver/fixtures/foo
Submodule foo deleted from a317ff
1 change: 1 addition & 0 deletions resolver/fixtures/foo.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$(info foo)
8 changes: 4 additions & 4 deletions resolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func TestLocal(t *testing.T) {
Path string
Content string
}{
{"fixtures/foo/bar", "$(info bar)\n"},
{"fixtures/foo/foo.mk", "$(info foo)\n"},
{"fixtures/foo/baz/stuff.mk", "$(info baz)\n"},
{"fixtures/bar", "$(info bar)\n"},
{"fixtures/foo.mk", "$(info foo)\n"},
{"fixtures/baz/stuff.mk", "$(info baz)\n"},
}

for _, c := range cases {
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestUniversal(t *testing.T) {
Path string
Content string
}{
{"fixtures/foo/bar", "$(info bar)\n"},
{"fixtures/bar", "$(info bar)\n"},
{"github.com/tj/foo/bar", "$(info bar)\n"},
}

Expand Down

0 comments on commit 8bd2621

Please sign in to comment.