Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testRecognizer (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go

    func (d *testBufferedMarshalable) Size() int {
    	return len(d.data)
    }
    
    func (d *testBufferedMarshalable) DeepCopyObject() runtime.Object {
    	panic("testBufferedMarshalable does not support DeepCopy")
    }
    
    func TestRecognize(t *testing.T) {
    	s := protobuf.NewSerializer(nil, nil)
    	ignores := [][]byte{
    		nil,
    		{},
    		[]byte("k8s"),
    		{0x6b, 0x38, 0x73, 0x01},
    	}
    	for i, data := range ignores {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top