Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPrintfLine (0.25 sec)

  1. src/net/textproto/writer_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package textproto
    
    import (
    	"bufio"
    	"strings"
    	"testing"
    )
    
    func TestPrintfLine(t *testing.T) {
    	var buf strings.Builder
    	w := NewWriter(bufio.NewWriter(&buf))
    	err := w.PrintfLine("foo %d", 123)
    	if s := buf.String(); s != "foo 123\r\n" || err != nil {
    		t.Fatalf("s=%q; err=%s", s, err)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 13:55:46 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top