build/internal/datastore/fake
Dmitri Shuralyov c79c8100c9 all: improve update-readmes.go and regenerate package READMEs
Some of README.md files were initially generated by update-readmes.go,
but later had some additional information appended. Re-running update-
readmes.go blasts away those changes, and requires manually reverting
the deletions. This makes it expensive to re-run update-readmes.go to
add new READMEs or update existing ones.

Solve this problem by adding support for a special "<!-- End of auto-
generated section -->" comment and making update-readmes.go preserve
any content after it.

After this change, re-running update-readmes.go produces a zero diff.

Also set the working directory when using build.Import so that packages
inside nested modules work okay.

Add the missing first word 'Package' to ./internal/datastore/fake doc.

Change-Id: If7ba92a297eebeec8029d48d760acb1daa7f263e
Reviewed-on: https://go-review.googlesource.com/c/build/+/300229
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2021-03-10 19:07:43 +00:00
..
README.md all: improve update-readmes.go and regenerate package READMEs 2021-03-10 19:07:43 +00:00
client.go all: improve update-readmes.go and regenerate package READMEs 2021-03-10 19:07:43 +00:00
client_test.go internal/datastore/fake: use gob encoding 2021-03-03 20:43:22 +00:00

README.md

Go Reference

golang.org/x/build/internal/datastore/fake

Package fake provides a fake implementation of a Datastore client to use in testing.