diff options
| author | Emmanuel T Odeke <emmanuel@orijtech.com> | 2019-03-05 03:58:37 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-03-11 18:59:53 +0000 |
| commit | ac56baa09f789ab93dd97b31c4f033da7c85a6a4 (patch) | |
| tree | 586a92620ea83e7d5d2b78d3122d4cd33759ed56 /src/cmd/vendor/github.com/google/pprof/profile/testdata/java.contention.string | |
| parent | 48d3c32ba9c2cbe4cfded44a150540f15fdf517c (diff) | |
| download | go-ac56baa09f789ab93dd97b31c4f033da7c85a6a4.tar.xz | |
testing: enable examples on js/wasm with non os.Pipe runExample
os.Pipe is not implemented on wasm/js so for that purpose use
a temporary file for js/wasm. This change creates two versions
of runExample:
* runExample verbatim that still uses os.Pipe for non js/wasm
* runExample that uses a temporary file
Also added a TODO to re-unify these function versions back into
example.go wasm/js gets an os.Pipe implementation.
Change-Id: I9f418a49b2c397e1667724c7442b7bbe8942225e
Reviewed-on: https://go-review.googlesource.com/c/go/+/165357
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/profile/testdata/java.contention.string')
0 files changed, 0 insertions, 0 deletions
