From 5696dfef6e57826f37624d98773286c89a5f005b Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 4 Jan 2018 16:50:15 -0500 Subject: Do no lint test helpers Signed-off-by: Matthew Heon Closes: #229 Approved by: rhatdan --- libpod/test_common.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-54-g00ecf