mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Hide common codec methods under helpers
The pending codec -> conversion split changes the signature of Encode and Decode to be more complicated. Create a stub helper with the exact semantics of today and do the simple mechanical refactor here to reduce the cost of that change.
This commit is contained in:
		| @@ -422,7 +422,7 @@ func TestExampleObjectSchemas(t *testing.T) { | ||||
| 				if err != nil { | ||||
| 					t.Errorf("Could not get codec for %s: %s", expectedType, err) | ||||
| 				} | ||||
| 				if err := codec.DecodeInto(data, expectedType); err != nil { | ||||
| 				if err := runtime.DecodeInto(codec, data, expectedType); err != nil { | ||||
| 					t.Errorf("%s did not decode correctly: %v\n%s", path, err, string(data)) | ||||
| 					return | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Clayton Coleman
					Clayton Coleman