1
0
mirror of https://github.com/golang/go synced 2024-10-05 07:21:25 -06:00
go/src/testing
Brady Catherman 9323de3da7 testing: implement 'Unordered Output' in Examples.
Adds a type of output to Examples that allows tests to have unordered
output. This is intended to help clarify when the output of a command
will produce a fixed return, but that return might not be in an constant
order.

Examples where this is useful would be documenting the rand.Perm()
call, or perhaps the (os.File).Readdir(), both of which can not guarantee
order, but can guarantee the elements of the output.

Fixes #10149

Change-Id: Iaf0cf1580b686afebd79718ed67ea744f5ed9fc5
Reviewed-on: https://go-review.googlesource.com/19280
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-03-09 04:34:41 +00:00
..
iotest all: single space after period. 2016-03-02 00:13:47 +00:00
quick all: single space after period. 2016-03-02 00:13:47 +00:00
allocs_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
allocs.go all: single space after period. 2016-03-02 00:13:47 +00:00
benchmark_test.go
benchmark.go all: single space after period. 2016-03-02 00:13:47 +00:00
cover.go
example.go testing: implement 'Unordered Output' in Examples. 2016-03-09 04:34:41 +00:00
export_test.go
testing_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
testing.go all: single space after period. 2016-03-02 00:13:47 +00:00