From 18aa0512ca5d97d6690cd0c10fba297141424089 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 5 Sep 2014 19:22:03 -0700 Subject: [PATCH] Do interface{} -> runtime.Object rename everywhere --- examples_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples_test.go b/examples_test.go index 70e910f0..3abb905c 100644 --- a/examples_test.go +++ b/examples_test.go @@ -31,7 +31,7 @@ import ( "github.com/golang/glog" ) -func validateObject(obj interface{}) (errors []error) { +func validateObject(obj runtime.Object) (errors []error) { switch t := obj.(type) { case *api.ReplicationController: errors = validation.ValidateManifest(&t.DesiredState.PodTemplate.DesiredState.Manifest) @@ -85,7 +85,7 @@ func walkJSONFiles(inDir string, fn func(name, path string, data []byte)) error } func TestApiExamples(t *testing.T) { - expected := map[string]interface{}{ + expected := map[string]runtime.Object{ "controller": &api.ReplicationController{}, "controller-list": &api.ReplicationControllerList{}, "pod": &api.Pod{}, @@ -120,7 +120,7 @@ func TestApiExamples(t *testing.T) { } func TestExamples(t *testing.T) { - expected := map[string]interface{}{ + expected := map[string]runtime.Object{ "frontend-controller": &api.ReplicationController{}, "redis-slave-controller": &api.ReplicationController{}, "redis-master": &api.Pod{},