wire: add error string assertions in tests (google/go-cloud#149)

out.txts that start with "ERROR" can now include substrings to assert
exist in the error messages, one per line.  This gives a very
coarse-grained way of testing for error message quality. It is not a
substitute for manual verification, but gives a "good enough" sanity
check that relevant details are reported.

Updates google/go-cloud#5
This commit is contained in:
Ross Light
2018-06-28 12:53:30 -07:00
parent 0bf9b3b5dd
commit 1d225cf371
6 changed files with 53 additions and 12 deletions

View File

@@ -1 +1,2 @@
ERROR
cycle

View File

@@ -1 +1,2 @@
ERROR
not a provider

View File

@@ -1 +1,3 @@
ERROR
foo.Foo
conflicts with provider

View File

@@ -1 +1,3 @@
ERROR
no provider found
Fooer

View File

@@ -1 +1,2 @@
ERROR
unexported identifier privateMsg