Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestClientAuthTrimSpace (0.23 sec)

  1. src/net/smtp/smtp_test.go

    		}
    		if got != tt.err {
    			t.Errorf("%d. got error = %q; want %q", i, got, tt.err)
    		}
    	}
    }
    
    // Issue 17794: don't send a trailing space on AUTH command when there's no password.
    func TestClientAuthTrimSpace(t *testing.T) {
    	server := "220 hello world\r\n" +
    		"200 some more"
    	var wrote strings.Builder
    	var fake faker
    	fake.ReadWriter = struct {
    		io.Reader
    		io.Writer
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top