Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBoundaryLine (0.26 sec)

  1. src/mime/multipart/multipart_test.go

    // license that can be found in the LICENSE file.
    
    package multipart
    
    import (
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"io"
    	"net/textproto"
    	"os"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    func TestBoundaryLine(t *testing.T) {
    	mr := NewReader(strings.NewReader(""), "myBoundary")
    	if !mr.isBoundaryDelimiterLine([]byte("--myBoundary\r\n")) {
    		t.Error("expected")
    	}
    	if !mr.isBoundaryDelimiterLine([]byte("--myBoundary \r\n")) {
    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