Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeDecoderebalanceInfo (0.1 sec)

  1. cmd/erasure-server-pool-rebalance_gen_test.go

    		_, err := v.UnmarshalMsg(bts)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestEncodeDecoderebalanceInfo(t *testing.T) {
    	v := rebalanceInfo{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecoderebalanceInfo Msgsize() is inaccurate")
    	}
    
    	vn := rebalanceInfo{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 19:36:57 UTC 2022
    - 11K bytes
    - Viewed (0)
Back to top