type statusError … type fakeNegotiater … func (n *fakeNegotiater) SupportedMediaTypes() []runtime.SerializerInfo { … } func (n *fakeNegotiater) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { … } func (n *fakeNegotiater) DecoderToVersion(serializer runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { … } var fakeCodec … func TestNegotiate(t *testing.T) { … } func fakeSerializerInfoSlice() []runtime.SerializerInfo { … } func BenchmarkNegotiateMediaTypeOptions(b *testing.B) { … }