Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeDecodeServerSystemConfig (0.13 sec)

  1. cmd/bootstrap-peer-server_gen_test.go

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