-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Go Testing Docs appear to suggest TestSomeLargeFunction is the
correct way to go.

http://golang.org/pkg/testing/


On 02/08/2014 02:03 PM, DavidVorick wrote:
> In src/disk/disk_test.go:
> 
>> +	//Seems to specify the indices of the blocks. One of which will
>> be kept as original input[0] +	//Also Any indices on the output
>> which are above the indices of the input seem to be where the
>> actual +	//encoding is done +	i := LVD.NewErasureCoder([]byte{0,
>> 1, 2}, []byte{0, 1, 2, 3, 4}) +	out := i.Code(in) +	c2 :=
>> LVD.NewErasureCoder([]byte{0, 3, 4}, []byte{1, 2}) +	var in2 =
>> [][]byte{out[0], out[3], out[4]} +	out2 := c2.Code(in2) +	if
>> !bytes.Equal(out2[0], in[1]) { +		t.Error(out2, "!=", in[1]) +	} 
>> +	if !bytes.Equal(out2[1], in[2]) { +		t.Error(out2, "!=",
>> in[2]) +	} +} +func Benchmark_encoding(b *testing.B) {
> 
> I was thinking that underscores would be okay in this case because
> you will often be doing something like
> 
> Test_SomeComplexFunction Test_SomeLargeFunction 
> Test_SomaliaRenderingEngine
> 
> and that's easier to read than
> 
> TestSomeLargeFunction TestSomeLargeFunction 
> TestSomaliaRenderingEngine
> 
> — Reply to this email directly or view it on GitHub 
> <https://github.com/Siacoin/Sia/pull/4/files#r9565341>.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS9oO4AAoJEHP1nN3uZoHumYAH/jhzODP8gaURZLAV4a1QiLaK
yUV2H0c5ZrikNY0yix7QWb27yYE7UCW3SrFh5Bu+yUG3jMLAwbmTvxrCm5O6t+lh
aAzfqZ387wN7MjcILl7jw4bfSMZU5J77iVSFfLXP+ZsQuSEED4D1srLmnv7hxenm
k2ZGAsA8oJqryXK0mX8a5Sk+64guxw/pE/v64C9dgdJWLne8kmTyQKJj5oW2ur9u
ieM/dK82V71Te0lKNXUUFYJJlqUzZvyOJEYQF85jAO9QlD40lVFz7Szf6qEsp61J
DQr6qZwA0oG4otkv980pe5EQn3+J6uhjwprNibAGAuw/LvzLmT1GEo/kZuu/hgI=
=mnlp
-----END PGP SIGNATURE-----