This adds a library that allows markers and actions inside comments in go source files. It then also adds an easy way to use that library for tests using packagestest.Expect This is used to easily write code inspection and manipulation tests in a language that is common to all tests. Change-Id: I755caaad1557c9b8779ad9ecda2b3309550d6976 Reviewed-on: https://go-review.googlesource.com/c/142998 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> |
||
---|---|---|
.. | ||
testdata | ||
expect.go | ||
expect_test.go | ||
extract.go |