Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewRawSerializer (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go

    }
    
    func BenchmarkRawProtobufEncoder(b *testing.B) {
    	benchmarkEncodeFor(b, protobuf.NewRawSerializer(nil, nil))
    }
    
    func BenchmarkRawProtobufEncodeWithAllocator(b *testing.B) {
    	benchmarkEncodeWithAllocatorFor(b, protobuf.NewRawSerializer(nil, nil))
    }
    
    func benchmarkEncodeFor(b *testing.B, target runtime.Encoder) {
    	for _, tc := range benchTestCases() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    	creater := &mockCreater{obj: &runtimetesting.MockCacheableObject{}}
    	typer := &mockTyper{gvk: &gvk}
    
    	encoders := []runtime.Encoder{
    		NewSerializer(creater, typer),
    		NewRawSerializer(creater, typer),
    	}
    
    	for _, encoder := range encoders {
    		runtimetesting.CacheableObjectTest(t, encoder)
    	}
    }
    
    type mockCreater struct {
    	apiVersion string
    	kind       string
    	err        error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top