commit ef26759deddd98480f521fd3069d5758e22eaeca Author: David Fifield david@bamsoftware.com Date: Wed Jun 24 12:58:34 2015 -0700
Don't need to export this variable. --- pt_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pt_test.go b/pt_test.go index 8cdf6da..c0540b5 100644 --- a/pt_test.go +++ b/pt_test.go @@ -704,19 +704,19 @@ func TestExtOrPortRecvCommand(t *testing.T) { }
// set up so that extOrPortSetup can write to one buffer and read from another. -type MockSetupBuf struct { +type mockSetupBuf struct { bytes.Buffer ReadBuf bytes.Buffer }
-func (buf *MockSetupBuf) Read(p []byte) (int, error) { +func (buf *mockSetupBuf) Read(p []byte) (int, error) { n, err := buf.ReadBuf.Read(p) return n, err }
func testExtOrPortSetupIndividual(t *testing.T, addr, methodName string) { var err error - var buf MockSetupBuf + var buf mockSetupBuf // fake an OKAY response. err = extOrPortSendCommand(&buf.ReadBuf, extOrCmdOkay, []byte{}) if err != nil {
tor-commits@lists.torproject.org