From cd8da1f8527ec7c676dd233eea14db223da2a5a7 Mon Sep 17 00:00:00 2001 From: YuikoTakada Date: Mon, 28 Oct 2019 02:10:57 +0000 Subject: [PATCH] Change DescribeItem to local func --- test/e2e/framework/create.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/framework/create.go b/test/e2e/framework/create.go index 57a49b8a10c..04f0c58c36f 100644 --- a/test/e2e/framework/create.go +++ b/test/e2e/framework/create.go @@ -165,7 +165,7 @@ func (f *Framework) CreateItems(items ...interface{}) (func(), error) { for _, item := range items { // Each factory knows which item(s) it supports, so try each one. done := false - description := DescribeItem(item) + description := describeItem(item) // Uncomment this line to get a full dump of the entire item. // description = fmt.Sprintf("%s:\n%s", description, PrettyPrint(item)) Logf("creating %s", description) @@ -260,11 +260,11 @@ type ItemFactory interface { Create(f *Framework, item interface{}) (func() error, error) } -// DescribeItem always returns a string that describes the item, +// describeItem always returns a string that describes the item, // usually by calling out to cache.MetaNamespaceKeyFunc which // concatenates namespace (if set) and name. If that fails, the entire // item gets converted to a string. -func DescribeItem(item interface{}) string { +func describeItem(item interface{}) string { key, err := cache.MetaNamespaceKeyFunc(item) if err == nil && key != "" { return fmt.Sprintf("%T: %s", item, key)