From e1e38bcafc3634c4f8e0b0dbc34f162ed8d8c464 Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Tue, 5 Dec 2017 20:22:34 +1030 Subject: [PATCH] Cleaned up some comments --- ringbuffer/RingBuffer_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ringbuffer/RingBuffer_test.go b/ringbuffer/RingBuffer_test.go index b368af11..11849a04 100644 --- a/ringbuffer/RingBuffer_test.go +++ b/ringbuffer/RingBuffer_test.go @@ -43,7 +43,7 @@ const ( testConcurrencyBufferSize = 1000 ) -// Consts to define types of actions, assertions and test ends +// Types of actions, assertions and test ends const ( testWrite = 0 testDoneWriting = 1 @@ -54,13 +54,14 @@ const ( assertError = 6 ) -// Strings to help with error messages +// Strings to help with test fail messages const ( noErrorFailMessage = "Should have got error!" falseErrorFailMessage = "Should not have got error: %v" - atMessage = " Series: %v Action: %v" + atMessage = " Series: %v" ) +// Pointer to the ringbuffer we will be testing var rb *ringBuffer // Call when the a test array has the wrong format @@ -105,8 +106,7 @@ var tests = [][]int{ testDoneWriting, testRead, testRead, testEnd}, } -// Tests series of actions performed by the ring buffer defined in array -// tests +// Tests series of actions performed by the ring buffer defined in array tests func TestAllSorts(t *testing.T) { for i := range tests { rb = NewRingBuffer(tests[i][0], testElementSize)