Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatGobDecodeInvalid (0.33 sec)

  1. src/math/big/floatmarsh_test.go

    		[]byte{0x1, 0xfa, 0x0, 0x0, 0x0, 0x0},
    	} {
    		err := NewFloat(0).GobDecode(tc)
    		if err == nil {
    			t.Error("expected GobDecode to return error for malformed input")
    		}
    	}
    }
    
    func TestFloatGobDecodeInvalid(t *testing.T) {
    	for _, tc := range []struct {
    		buf []byte
    		msg string
    	}{
    		{
    			[]byte{0x1, 0x2a, 0x20, 0x20, 0x20, 0x20, 0x0, 0x20, 0x20, 0x20, 0x0, 0x20, 0x20, 0x20, 0x20, 0x0, 0x0, 0x0, 0x0, 0xc},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 18:18:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top