Skip to content

Add fixtures for resolver tests #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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