]> Cypherpunks repositories - gostls13.git/commit
bytes: improve test readability
authorGabriel Aszalos <gabriel.aszalos@gmail.com>
Wed, 20 Sep 2017 09:10:26 +0000 (11:10 +0200)
committerIan Lance Taylor <iant@golang.org>
Wed, 20 Sep 2017 13:41:03 +0000 (13:41 +0000)
commit977578816ea7d0c2b5e00e612e222a8378abf11e
tree410b79ea219e15fe431eacc24c3f91f521538763
parent1b548dc5fbe5b75085d1b9b3230d5f0fdebfeaf5
bytes: improve test readability

This CL improves the readability of the tests in the bytes package by
naming the `data` test variable `testString`, using the same convention
as its counterpart, `testBytes`.

It additionally removes some type casting which was unnecessary.

Change-Id: If38b5606ce8bda0306bae24498f21cb8dbbb6377
Reviewed-on: https://go-review.googlesource.com/64931
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/bytes/buffer_test.go
src/bytes/reader_test.go