Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeDecodeBatchJobPrefix (0.15 sec)

  1. cmd/batch-handlers_gen_test.go

    		_, err := v.UnmarshalMsg(bts)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestEncodeDecodeBatchJobPrefix(t *testing.T) {
    	v := BatchJobPrefix{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBatchJobPrefix Msgsize() is inaccurate")
    	}
    
    	vn := BatchJobPrefix{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top