Repository navigation
Conversation
Give every remaining library package in the root module an example_test.go, removing all 28 entries from exampleExemptions so TestEveryPackageHasExamples has no exemptions left. The offline examples carry // Output:; the Postgres stores and the Steamworks and EOS integrations stay compile-only because they need a database or a running app. Update the equivalent docs/en and docs/zh packages pages, the process note that owns the exemption list, and add a changelog fragment.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every library package in the root module now has an
example_test.go, soTestEveryPackageHasExamplesneeds no exemptions: the 28 remaining packages from #2614 got examples, andexampleExemptionsis empty. The offline examples (cover generation, motion, hot reload, save round trips, agent cache, diagnostics redaction, theme contrast, audit log, port mapping, OIDC/JWKS, SQLite cloud saves and leaderboards, WeChat Pay signing, an httptest WebSocket echo, and the tooling packages) carry// Output:and run undergo tool nsgo test; the two Postgres stores,hostbridge,steam,steamworksandeosare compile-only because they need a database or a running app with a native SDK. The equivalentdocs/enanddocs/zhpages and the process note that owns the exemption list are updated, with a changelog fragment.Related issue
Fixes #2614
Verification
gofmt -lproduces no output for the changed and new Go filesgo tool nsgo test ./...passes from the repository root (not run: the whole-repository suite is out of scope here; the affected packages were tested instead)go tool nsgo check -target macos,windows,linux,android,webpasses from the repository root (not run in full; each affected package was vetted for the host,web,windowsandandroid)go tool nsgo check -target ios,ios_simulatorpasses (not run: needs Xcode and is out of scope for these packages)bun run buildpasses (fordocs/orwebsite/changes)docs/en/anddocs/zh/updatedAffected-package checks run:
go tool nsgo teston all 28 packages (andinternal/repocheck), includingTestEveryPackageHasExamplesgo tool nsgo checkon the host for all 28 packages andinternal/repocheckgo tool nsgo check -target web,windows,androidon the packages whose examples depend on build tags or native SDKsbun run verify-notesandgo run ./tools/changelog checkScreenshots
None: the change adds Go examples and documentation only, with no visible UI change.