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
|
testConcurrencyBufferSize = 1000
|
||||||
)
|
)
|
||||||
|
|
||||||
// Consts to define types of actions, assertions and test ends
|
// Types of actions, assertions and test ends
|
||||||
const (
|
const (
|
||||||
testWrite = 0
|
testWrite = 0
|
||||||
testDoneWriting = 1
|
testDoneWriting = 1
|
||||||
|
@ -54,13 +54,14 @@ const (
|
||||||
assertError = 6
|
assertError = 6
|
||||||
)
|
)
|
||||||
|
|
||||||
// Strings to help with error messages
|
// Strings to help with test fail messages
|
||||||
const (
|
const (
|
||||||
noErrorFailMessage = "Should have got error!"
|
noErrorFailMessage = "Should have got error!"
|
||||||
falseErrorFailMessage = "Should not have got error: %v"
|
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
|
var rb *ringBuffer
|
||||||
|
|
||||||
// Call when the a test array has the wrong format
|
// Call when the a test array has the wrong format
|
||||||
|
@ -105,8 +106,7 @@ var tests = [][]int{
|
||||||
testDoneWriting, testRead, testRead, testEnd},
|
testDoneWriting, testRead, testRead, testEnd},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests series of actions performed by the ring buffer defined in array
|
// Tests series of actions performed by the ring buffer defined in array tests
|
||||||
// tests
|
|
||||||
func TestAllSorts(t *testing.T) {
|
func TestAllSorts(t *testing.T) {
|
||||||
for i := range tests {
|
for i := range tests {
|
||||||
rb = NewRingBuffer(tests[i][0], testElementSize)
|
rb = NewRingBuffer(tests[i][0], testElementSize)
|
||||||
|
|
Loading…
Reference in New Issue