summaryrefslogtreecommitdiff
path: root/libpod/state_test.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-27 13:23:23 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-29 02:18:45 +0000
commitb1dfee50e826bb3e4a699c89fabdb3bfcdaae86b (patch)
tree4258f39aa67bbcbc220d3533cf3bc2ec86df7fd1 /libpod/state_test.go
parent120520af349bd6f23133fcf2e7f3b6efa0f7a7ad (diff)
downloadpodman-b1dfee50e826bb3e4a699c89fabdb3bfcdaae86b.tar.gz
podman-b1dfee50e826bb3e4a699c89fabdb3bfcdaae86b.tar.bz2
podman-b1dfee50e826bb3e4a699c89fabdb3bfcdaae86b.zip
Add tests for container graphs
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #557 Approved by: rhatdan
Diffstat (limited to 'libpod/state_test.go')
-rw-r--r--libpod/state_test.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/libpod/state_test.go b/libpod/state_test.go
index 8b6abdb8d..f989dfefd 100644
--- a/libpod/state_test.go
+++ b/libpod/state_test.go
@@ -96,30 +96,6 @@ func runForAllStates(t *testing.T, testFunc func(*testing.T, State, string)) {
}
}
-func getTestCtrN(n, lockPath string) (*Container, error) {
- return getTestContainer(strings.Repeat(n, 32), "test"+n, lockPath)
-}
-
-func getTestCtr1(lockPath string) (*Container, error) {
- return getTestCtrN("1", lockPath)
-}
-
-func getTestCtr2(lockPath string) (*Container, error) {
- return getTestCtrN("2", lockPath)
-}
-
-func getTestPodN(n, lockPath string) (*Pod, error) {
- return getTestPod(strings.Repeat(n, 32), "test"+n, lockPath)
-}
-
-func getTestPod1(lockPath string) (*Pod, error) {
- return getTestPodN("1", lockPath)
-}
-
-func getTestPod2(lockPath string) (*Pod, error) {
- return getTestPodN("2", lockPath)
-}
-
func TestAddAndGetContainer(t *testing.T) {
runForAllStates(t, func(t *testing.T, state State, lockPath string) {
testCtr, err := getTestCtr1(lockPath)