Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(303)

Unified Diff: src/pkg/crypto/openpgp/canonical_text_test.go

Issue 4670051: code review 4670051: crypto/openpgp: use new(bytes.Buffer) where possible
Patch Set: diff -r aa01a846e2b2 https://go.googlecode.com/hg/ Created 14 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pkg/crypto/openpgp/packet/packet_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/crypto/openpgp/canonical_text_test.go
===================================================================
--- a/src/pkg/crypto/openpgp/canonical_text_test.go
+++ b/src/pkg/crypto/openpgp/canonical_text_test.go
@@ -32,7 +32,7 @@
func testCanonicalText(t *testing.T, input, expected string) {
- r := recordingHash{bytes.NewBuffer(nil)}
+ r := recordingHash{new(bytes.Buffer)}
c := NewCanonicalTextHash(r)
c.Write([]byte(input))
result := c.Sum()
« no previous file with comments | « no previous file | src/pkg/crypto/openpgp/packet/packet_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b