Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncodeDecodeDailyAllTierStats (0.18 sec)

  1. cmd/tier-last-day-stats_gen_test.go

    		_, err := v.UnmarshalMsg(bts)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestEncodeDecodeDailyAllTierStats(t *testing.T) {
    	v := DailyAllTierStats{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeDailyAllTierStats Msgsize() is inaccurate")
    	}
    
    	vn := DailyAllTierStats{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top