mirror of https://github.com/containers/podman.git
Do no lint test helpers
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #229 Approved by: rhatdan
This commit is contained in:
parent
67b6c132d8
commit
5696dfef6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue