[PATCH] Made tests independent from package path
The test case checked for a whole package path, which should exist in a generated moq file, but that failed for obvious reasons in forks
This commit is contained in:
parent
df933a7865
commit
10bc283502
@ -210,7 +210,7 @@ func TestDotImports(t *testing.T) {
|
|||||||
t.Errorf("mock error: %s", err)
|
t.Errorf("mock error: %s", err)
|
||||||
}
|
}
|
||||||
s := buf.String()
|
s := buf.String()
|
||||||
if !strings.Contains(s, `"github.com/matryer/moq/pkg/moq/testpackages/dotimport"`) {
|
if !strings.Contains(s, `/moq/pkg/moq/testpackages/dotimport"`) {
|
||||||
t.Error("contains invalid dot import")
|
t.Error("contains invalid dot import")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user