separate tests
This commit is contained in:
parent
14581757e7
commit
d4af5388a9
@ -21,17 +21,41 @@ import (
|
|||||||
"github.com/google/cadvisor/storage/test"
|
"github.com/google/cadvisor/storage/test"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInMemoryStorageDriver(t *testing.T) {
|
func TestMaxMemoryUsage(t *testing.T) {
|
||||||
maxSize := 200
|
maxSize := 200
|
||||||
|
|
||||||
var driver storage.StorageDriver
|
var driver storage.StorageDriver
|
||||||
for N := 10; N < maxSize; N += 10 {
|
for N := 10; N < maxSize; N += 10 {
|
||||||
driver = New(N, N)
|
driver = New(N, N)
|
||||||
test.StorageDriverTestMaxMemoryUsage(driver, t)
|
test.StorageDriverTestMaxMemoryUsage(driver, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestSampleCpuUsage(t *testing.T) {
|
||||||
|
maxSize := 200
|
||||||
|
|
||||||
|
var driver storage.StorageDriver
|
||||||
|
for N := 10; N < maxSize; N += 10 {
|
||||||
driver = New(N, N)
|
driver = New(N, N)
|
||||||
test.StorageDriverTestSampleCpuUsage(driver, t)
|
test.StorageDriverTestSampleCpuUsage(driver, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestSamplesWithoutSample(t *testing.T) {
|
||||||
|
maxSize := 200
|
||||||
|
|
||||||
|
var driver storage.StorageDriver
|
||||||
|
for N := 10; N < maxSize; N += 10 {
|
||||||
driver = New(N, N)
|
driver = New(N, N)
|
||||||
test.StorageDriverTestSamplesWithoutSample(driver, t)
|
test.StorageDriverTestSamplesWithoutSample(driver, t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestPercentilessWithoutSample(t *testing.T) {
|
||||||
|
maxSize := 200
|
||||||
|
|
||||||
|
var driver storage.StorageDriver
|
||||||
|
for N := 10; N < maxSize; N += 10 {
|
||||||
driver = New(N, N)
|
driver = New(N, N)
|
||||||
test.StorageDriverTestPercentilesWithoutSample(driver, t)
|
test.StorageDriverTestPercentilesWithoutSample(driver, t)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user