I have this near the end of a test I’m trying to w...
# pact-go
r
I have this near the end of a test I’m trying to write:
Copy code
err = mockProvider.ExecuteTest(t, doTestCreateGithubRepo)
With this as definition:
Copy code
var doTestCreateGithubRepo = func() func(config MockServerConfig) error {
	return executeTestCreateGithubRepo("foo")
}()

var executeTestCreateGithubRepo = func(repo string) func(config MockServerConfig) error {
   ...
}
I would like to have access to
t *testing.T
within
executeTestCreateGithubRepo
for the test logging functions. How can I do that?