Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseAllSizes (0.2 sec)

  1. src/mime/multipart/multipart_test.go

    		}
    		pbody, err := io.ReadAll(p)
    		if err != nil {
    			return nil, fmt.Errorf("error reading part: %v", err)
    		}
    		got = append(got, headerBody{p.Header, string(pbody)})
    	}
    }
    
    func TestParseAllSizes(t *testing.T) {
    	t.Parallel()
    	maxSize := 5 << 10
    	if testing.Short() {
    		maxSize = 512
    	}
    	var buf bytes.Buffer
    	body := strings.Repeat("a", maxSize)
    	bodyb := []byte(body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
Back to top