var writeTests … func TestWrite(t *testing.T) { … } type errorWriter … func (e errorWriter) Write(b []byte) (int, error) { … } func TestError(t *testing.T) { … } var benchmarkWriteData … func BenchmarkWrite(b *testing.B) { … }
var writeTests … func TestWrite(t *testing.T) { … } type errorWriter … func (e errorWriter) Write(b []byte) (int, error) { … } func TestError(t *testing.T) { … } var benchmarkWriteData … func BenchmarkWrite(b *testing.B) { … }