Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNonNewLogger (0.22 sec)

  1. src/log/log_test.go

    	var b strings.Builder
    	l := New(&b, "", 0)
    	l.Println(testString)
    	if expect := testString + "\n"; b.String() != expect {
    		t.Errorf("log output should match %q is %q", expect, b.String())
    	}
    }
    
    func TestNonNewLogger(t *testing.T) {
    	var l Logger
    	l.SetOutput(new(bytes.Buffer)) // minimal work to initialize a Logger
    	l.Print("hello")
    }
    
    func TestOutputRace(t *testing.T) {
    	var b bytes.Buffer
    	l := New(&b, "", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top