docs(pact,party,surf): compile README Go examples via src= (quick-261118-qsd)

This commit is contained in:
Jakub Zych
2026-11-18 20:07:39 +01:00
parent cd55a3980d
commit a2551d83d7
6 changed files with 257 additions and 86 deletions

View 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)
}