docs(pact,party,surf): compile README Go examples via src= (quick-261118-qsd)
This commit is contained in:
11
modules/party/export_docs_test.go
Normal file
11
modules/party/export_docs_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package party
|
||||
|
||||
import "testing"
|
||||
|
||||
// DocsRegistry swaps the process-wide plugin registry for an empty one for
|
||||
// the length of the test, for the docs examples in example_test.go that
|
||||
// register plugins.
|
||||
func DocsRegistry(t *testing.T) {
|
||||
t.Helper()
|
||||
withRegistry(t)
|
||||
}
|
||||
Reference in New Issue
Block a user