ContainerImage.Pinniped/test/library/spew.go
Monis Khan a544f7d7bf
Add integration test to check app is running
Signed-off-by: Monis Khan <mok@vmware.com>
2020-07-09 15:30:59 -04:00

24 lines
549 B
Go

/*
Copyright 2020 VMware, Inc.
SPDX-License-Identifier: Apache-2.0
*/
package library
import "github.com/davecgh/go-spew/spew"
func Sdump(a ...interface{}) string {
config := spew.ConfigState{
Indent: "\t",
MaxDepth: 10, // prevent log explosion
DisableMethods: true,
DisablePointerMethods: true,
DisablePointerAddresses: true,
DisableCapacities: true,
ContinueOnMethod: true,
SortKeys: true,
SpewKeys: true,
}
return config.Sdump(a...)
}