summaryrefslogtreecommitdiff
path: root/libpod/test_common.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-01-04 16:50:15 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-17 15:26:43 +0000
commit5696dfef6e57826f37624d98773286c89a5f005b (patch)
treeadafc34e7c8f06865faba2d8aeda7951c9db9f3c /libpod/test_common.go
parent67b6c132d83b94d20c9ef204c8dcba3de5581f60 (diff)
downloadpodman-5696dfef6e57826f37624d98773286c89a5f005b.tar.gz
podman-5696dfef6e57826f37624d98773286c89a5f005b.tar.bz2
podman-5696dfef6e57826f37624d98773286c89a5f005b.zip
Do no lint test helpers
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #229 Approved by: rhatdan
Diffstat (limited to 'libpod/test_common.go')
-rw-r--r--libpod/test_common.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/test_common.go b/libpod/test_common.go
index f27c94f1f..29461c12c 100644
--- a/libpod/test_common.go
+++ b/libpod/test_common.go
@@ -12,6 +12,7 @@ import (
"github.com/opencontainers/runtime-tools/generate"
)
+// nolint
func getTestContainer(id, name, locksDir string) (*Container, error) {
ctr := &Container{
config: &ContainerConfig{
@@ -75,6 +76,7 @@ func getTestContainer(id, name, locksDir string) (*Container, error) {
// This horrible hack tests if containers are equal in a way that should handle
// empty arrays being dropped to nil pointers in the spec JSON
+// nolint
func testContainersEqual(a, b *Container) bool {
if a == nil && b == nil {
return true