mirror of https://bitbucket.org/ausocean/av.git
Cleaned up some comments
This commit is contained in:
parent
508dc6536a
commit
e1e38bcafc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue